А завтра захотите банить яндекс.бота, а послезавтра банить гуглобота везде,
кроме одного uri..
HTTP:
map $http_user_agent$request_uri $blocks {
default 0;
"~Yandexbot" 1;
"~Googlebot/2\.1.*allowedforgoogle" 0;
"~Googlebot/2\.1" 1;
}
SERVER/LOCATION:
if ( $blocks = "1") { return 403; }
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,260333,260456#msg-260456
_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru