Answer the question
In order to leave comments, you need to log in
nginx. The condition in curly braces of the regular expression does not work
Hello! I'm confused about something...
I write the following condition in location /:
if ($request ~* "/products/detail.php\?ID=.{7}")
{
access_log /var/log/nginx.error_log;
return 403;
}
After that, nginx starts blocking requests like:
/products/detail.php?ID=142
That is, the condition "if the characters after = is greater than or equal to 7" does not work.
Please advise.
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