[wp-trac] [WordPress Trac] #62108: Add direct access check to /wp-includes/blocks/index.php
WordPress Trac
noreply at wordpress.org
Tue Sep 24 23:31:41 UTC 2024
#62108: Add direct access check to /wp-includes/blocks/index.php
---------------------------+--------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+--------------------
Related to #60352.
As servers are typically set to use `index.php` as a default when
directories are accessed, the use of the file in `/wp-includes/blocks/`
can result in filling the logs files with noise due to fatal errors as
search engines test the URL for validity.
As a temporary fix for this, I suggest adding an `ABSPATH` check to the
file and dying gracefully to prevent noise.
There is a [https://github.com/WordPress/wordpress-develop/pull/6635 pull
request] linked to the earlier ticket that can be used as a starting
point.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list