Answer the question
In order to leave comments, you need to log in
How to block all requests with double underscore in $http_referer line in nginx?
In nginx, in the $http_referer line (or with the help of any other construction), you need to block all requests that have __ (double underscore) ??
An example of an invalid request site.com/422.h__tml/71wf4xa9d/
to be rejected
if ( $http_referer ~* (__)* )
{
return 444;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question