map $http_user_agent $bad_ua {
default 0;
"" 1;
"~*Panopta" 1;
"~*Baiduspider" 1;
"~*AC-BaiduBot" 1;
"~*TurnitinBot" 1;
"~*pirst" 1;
"~*FlightDeckReportsBot" 1;
"~*Fuck" 1;
"~*DomainTools" 1;
"~*ZmEu" 1;
"~*ezooms" 1;
"~*solomono" 1;
"~*360Spider" 1;
"~*Ahrefs" 1;
"~*Sogou" 1;
"~*Java/1" 1;
"~*nutch agent" 1;
"~*Indy Library" 1;
"~*Sogou" 1;
"~*urllib" 1;
"~*wget" 1;
"~*curl" 1;
"~*MJ12bot" 1;
"~*majestic" 1;
}
if ($bad_ua=1) {return 403;}
map $http_user_agent $bad_ua {
default 0;
"" 1;
"~*Panopta" 1;
"~*Baiduspider" 1;
"~*AC-BaiduBot" 1;
"~*TurnitinBot" 1;
"~*pirst" 1;
"~*FlightDeckReportsBot" 1;
"~*Fuck" 1;
"~*DomainTools" 1;
"~*ZmEu" 1;
"~*ezooms" 1;
"~*solomono" 1;
"~*360Spider" 1;
"~*Ahrefs" 1;
"~*Sogou" 1;
"~*Java/1" 1;
"~*nutch agent" 1;
"~*Indy Library" 1;
"~*Sogou" 1;
"~*urllib" 1;
"~*wget" 1;
"~*curl" 1;
"~*MJ12bot" 1;
"~*majestic" 1;
}