Can't Block Referrer in htaccess
-
So far I have this but everything I try doesn’t stop me visiting my site from the link on the bad site. I managed to get a 403 for links to our homepage because its HTML but the rest of the site is WordPress and I can’t get a 403 to show for the inner pages of our site 🙁
AddType text/x-component .htc
# BEGIN WordPress
<IfModule mod_rewrite.c>
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} http://www.BADSite.com [NC]
RewriteRule .* – [F]
</IfModule>
# END WordPress
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Can't Block Referrer in htaccess’ is closed to new replies.