You could also look at the nginx module naxsi : https://github.com/nbs-system/naxsi
More flexibility with regex and actions -- StackStar Managed Hosting Services : https://www.stackstar.com Shift8 Web Design in Toronto : https://www.shift8web.ca On Mon, Nov 14, 2016 at 10:04 AM, debilish99 <nginx-fo...@forum.nginx.org> wrote: > Hello, > > I have a server with several domains, in the configuration file of each > domain I have a line like this to block bad bots. > > If ($ http_user_agent ~ * > (zealbot|MJ12bot|AhrefsBot|sogou|PaperLiBot|uipbot| > DotBot|GetIntent|Cliqzbot|YandexBot|Nutch|TurnitinBot|IndeedBot) > Return 403; > } > > This works fine. > > The question is, if I increase the list of bad bots to 1000, for example, > this would be a speed problem when nginx manages every request that > arrives. > > I have domains that can have 500,000 hits daily and up to 20,000 hits. > > Thank you all. > > Greetings. > > Posted at Nginx Forum: https://forum.nginx.org/read. > php?2,270930,270930#msg-270930 > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx >
_______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx