Last active
August 29, 2015 14:15
-
-
Save Lindstromer/027cdc630941bb905ae2 to your computer and use it in GitHub Desktop.
Block referrer spam in nginx
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
# Block known spam referers and give them a 444 (used for malware etc). | |
if ($http_referer ~* (semalt.com|bestwebsiteawards|buttons-for-website|hostingbot)) { | |
return 444; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment