[wp-trac] [WordPress Trac] #58496: Prevent Error when bot's arbitrarily scan WordPress files

WordPress Trac noreply at wordpress.org
Thu Jun 8 18:36:43 UTC 2023


#58496: Prevent Error when bot's arbitrarily scan WordPress files
--------------------------+-----------------------------
 Reporter:  haykuro       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 We've been noticing a large # of requests going directly to /wp-content
 /wp-includes/blocks/index.php with a user-agent containing "python".

 The error being thrown is:

 Uncaught exception 'Error' with message 'Undefined constant "ABSPATH"' in
 /var/www/wp-includes/blocks/index.php:8

 This PR should prevent this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58496>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list