Skip to content

Instantly share code, notes, and snippets.

@osde8info
Created May 13, 2013 21:06
Show Gist options
  • Save osde8info/5571528 to your computer and use it in GitHub Desktop.
Save osde8info/5571528 to your computer and use it in GitHub Desktop.
htaccess anti-spam
# block referrer spam
SetEnvIfNoCase Referer ".*(badword1|badword2|badword3|badword4|xxx).*" BadReferrer
order deny,allow
deny from env=BadReferrer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment