How can i block these requests

Edho Arief edho at myconan.net
Tue Oct 30 05:19:39 UTC 2012


On Tue, Oct 30, 2012 at 12:13 PM, Ranjib Dey <dey.ranjib at gmail.com> wrote:
>
> Thanks for the pointer Edho,
> right now we are getting these log entries at a rate of 5000 per hour per
> server, and we have multiple nginx installations, and this is almost
> flooding our centralized logging system. Is there a way to disable logging
> such requests, or lower the number of occurrences (like tweaking the keep
> alive timeout value or number of requests)?
>
> thanks in advance
> ranjib
>

Maybe something like this will work (untested)

error_page 400 /400.html;
location = /400.html {
  access_log off;
}



More information about the nginx mailing list