Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created July 11, 2014 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterwilsoncc/5c1c401c22d75646e78a to your computer and use it in GitHub Desktop.
Save peterwilsoncc/5c1c401c22d75646e78a to your computer and use it in GitHub Desktop.
Blocking referer spam
<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