How can i block these requests

I am getting following access.log: and are significant in number
RequestMethod=- RequestURI=- HTTPStatus=400 BodyBytesSent=0
RequestTime=0.000 ResponseTime=- HTTPReferrer=“-” UserAgent=“-”
X-Forwarded-For=- HTTPStatus=400

Does anyone know why i am getting these empty requests, and how to stop
them.

Posted at Nginx Forum:

On Oct 29, 2012 8:09 PM, “nilesh” [email protected] wrote:

I am getting following access.log: and are significant in number
RequestMethod=- RequestURI=- HTTPStatus=400 BodyBytesSent=0
RequestTime=0.000 ResponseTime=- HTTPReferrer=“-” UserAgent=“-”
X-Forwarded-For=- HTTPStatus=400

Does anyone know why i am getting these empty requests, and how to stop
them.

That’s modern browser’s keepalive

Posted at Nginx Forum:
How can i block these requests

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

On Tue, Oct 30, 2012 at 12:13 PM, Ranjib D. [email protected]
wrote:

Maybe something like this will work (untested)

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