Opened 3 years ago
Closed 3 years ago
#58496 closed defect (bug) (duplicate)
Prevent Error when bot's arbitrarily scan WordPress files
| Reported by: | haykuro | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Change History (2)
This ticket was mentioned in PR #4585 on WordPress/wordpress-develop by nbcsteveb.
3 years ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.
Trac ticket: https://core.trac.wordpress.org/ticket/58496