Created
July 11, 2014 00:05
-
-
Save peterwilsoncc/5c1c401c22d75646e78a to your computer and use it in GitHub Desktop.
Blocking referer spam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} ^http(s)?://([^.]+\.)?refererspam.com/ [NC,OR] | |
RewriteCond %{HTTP_REFERER} ^http(s)?://([^.]+\.)?spamreferer.com/ [NC] | |
RewriteRule .* - [F] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment