Verified Commit bf6b03c4 authored by Elias Ojala's avatar Elias Ojala
parents 067894ef f8c6dcdd
# http://rosslawley.co.uk/archive/old/2010/01/04/nginx-how-to-multiple-if-statements/
if ($http_user_agent ~* "ltx71|Barkrowler|ahrefs|infergy|SEMrush|Tsunami|Solstice|Hentai|BLEXbot|webmeup|CCBot|commoncrawl|Exabot|yoozBot|dotBot|opensiteexplorer|checkmarknetwork|yak|megaindex|domainsigma|elefent|extlinksbot|daum|uptimebot|iabtechlab|dataprovider|ips-agent|mauibot|bnf.fr_bot|spbot|MJ12bot|filterdb.iss.net|YisouSpider|archive|Wayback Machine|PiplBot|ipip.net|majestic12|zgrab|uptime.com|netEstate|CipaCrawler|domaincrawler|Wappalyzer|Nimbostratus|aihitdata|aiHitBot|Datanyze|LightspeedSystemsCrawler|PrivacyScore" ) {
if ($http_user_agent ~* "ltx71|Barkrowler|ahrefs|infergy|SEMrush|Tsunami|Solstice|Hentai|BLEXbot|webmeup|CCBot|commoncrawl|Exabot|yoozBot|dotBot|opensiteexplorer|checkmarknetwork|yak|megaindex|domainsigma|elefent|extlinksbot|daum|uptimebot|iabtechlab|dataprovider|ips-agent|mauibot|bnf.fr_bot|spbot|MJ12bot|filterdb.iss.net|YisouSpider|archive|Wayback Machine|PiplBot|ipip.net|majestic12|zgrab|uptime.com|netEstate|CipaCrawler|domaincrawler|Wappalyzer|Nimbostratus|aihitdata|aiHitBot|Datanyze|LightspeedSystemsCrawler|PrivacyScore|Bytespider|bytedance.com" ) {
set $robot Y;
# return 403 "User-agent blocked";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment