Stop SPAM Referrers on NGINX and Google Analytics
server { | |
# ... | |
location / { | |
# ... | |
# Stop SPAM Referrers | |
if ($http_referer ~* (Free-Traffic|babes|click|diamond|forsale|girl|jewelry|love|nudit|poker|porn|poweroversoftware|sex|teen|video|webcam|zippo|social-buttons|simple-share-buttons|free-share-buttons)){ | |
return 403; | |
} | |
# ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Regex based on this StackOverflow answer