Bloking Bad bots

debilish99 nginx-forum at
Mon Nov 14 15:04:08 UTC 2016


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 ~ *
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

I have domains that can have 500,000 hits daily and up to 20,000 hits.

Thank you all.


Posted at Nginx Forum:,270930,270930#msg-270930

More information about the nginx mailing list