Many thanks to all for your contributions. My conclusion is that the method I use with many bots would be slow.
It seems the best option is to use nginx maps: https://forum.nginx.org/read.php?11,255678,270417#msg-270417 https://community.centminmod.com/threads/blocking-bad-or-aggressive-bots.6433/ https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker Greetings to all. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270930,270948#msg-270948 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx