[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:19:32 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):

 Small update...

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

 To block empty referrers as well.

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


More information about the wp-trac mailing list