[wp-trac] [WordPress Trac] #55067: Use of undefined constant ABSPATH - assumed 'ABSPATH' as of WP5.9

WordPress Trac noreply at wordpress.org
Fri Feb 11 02:09:28 UTC 2022


#55067: Use of undefined constant ABSPATH - assumed 'ABSPATH' as of WP5.9
-------------------------+------------------------------
 Reporter:  maveloweb    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Security     |     Version:  5.9
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by maveloweb):

 This seems to do the trick in wp-includes/.htaccess


 {{{
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} ^%{HTTP_HOST} [NC]
 RewriteRule . - [R=403,L]
 }}}

 Will post another update if problems are encountered.

 Note: Yes we know the HTTP_REFERER can be spoofed :P

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55067#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list