V
V
votod2015-05-02 14:45:38
Nginx
votod, 2015-05-02 14:45:38

How to close nginx connection "GET /?False"?

"GET /?False HTTP/1.1" 200 727 " google.com " "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0" "117.169.217.77"
In /var/ logs log/nginx/access.log is "/?False" and how to give them a 444 error, that is, close the connection to ip addresses that have /?False in the logs ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
votod, 2015-05-05
@votod

solution
if ($http_referer !~* ^($/?False) ){
return 444;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question