Last active
October 20, 2021 10:52
-
-
Save Belphemur/ca91335c3870d9351b41 to your computer and use it in GitHub Desktop.
Referrer black list for 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
map $http_referer $bad_referer { | |
hostnames; | |
default 0; | |
# Put regexes for undesired referers here | |
"~social-buttons.com" 1; | |
"~semalt.com" 1; | |
"~kambasoft.com" 1; | |
"~savetubevideo.com" 1; | |
"~descargar-musica-gratis.net" 1; | |
"~7makemoneyonline.com" 1; | |
"~baixar-musicas-gratis.com" 1; | |
"~iloveitaly.com" 1; | |
"~ilovevitaly.ru" 1; | |
"~fbdownloader.com" 1; | |
"~econom.co" 1; | |
"~buttons-for-website.com" 1; | |
"~buttons-for-your-website.com" 1; | |
"~srecorder.co" 1; | |
"~darodar.com" 1; | |
"~priceg.com" 1; | |
"~blackhatworth.com" 1; | |
"~adviceforum.info" 1; | |
"~hulfingtonpost.com" 1; | |
"~best-seo-solution.com" 1; | |
"~googlsucks.com" 1; | |
"~theguardlan.com" 1; | |
"~i-x.wiki" 1; | |
"~buy-cheap-online.info" 1; | |
"~Get-Free-Traffic-Now.com" 1; | |
"~free-floating-buttons.com" 1; | |
"~event-tracking.com" 1; | |
"~qualitymarketzone.com" 1; | |
"~get-free-social-traffic.com" 1; | |
"~copyrightclaims.org" 1; | |
"~alibestsale.com" 1; | |
"~snip.to" 1; | |
"~traffic2cash.xyz" 1; | |
"~snip.tw" 1; | |
"~googlemare.com" 1; | |
"~nufaq.com" 1; | |
"~topseoservices.co" 1; | |
"~trafficgenius.xyz" 1; | |
"~for-your.website" 1; | |
"~share-buttons.xyz" 1; | |
"~traffic2cash.xyz" 1; | |
"~годом.рф" 1; | |
"~nufaq.com" 1; | |
"~free-traffic.xyz" 1; | |
"~ɢoogle.com" 1; | |
"~lifehacĸer.com" 1; | |
"~eyeserp.com" 1; | |
"~addons.mozilla.org" 1; | |
"~motherboard.vice.com" 1; | |
"~google-liar.ru" 1; | |
} |
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
# Add This in your server directive | |
if ($bad_referer) { | |
return 444; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment