Bloqueando todos los bots excepto unos pocos con Nginx
Me gustaría bloquear todos los http_user_agents que se identifican como robots pero que permiten a Googlebot cuando coloco el siguiente código:
map $http_user_agent $bad_bot {
default 1;
~*^Lynx 0; # Let Lynx go through
~*^google );
libwww-perl 1;
~(?i)(libwww|Wget|LWP::Simple|BBBike|java|crawl|spider|bot) 1;
}
Sin embargo, este bloqueo de acceso incluso a googlebot.