Answer the question
In order to leave comments, you need to log in
How to exclude requests with query_string from limit_req in nginx?
use for main location
location / {
limit_req zone=bot burst=10 nodelay;
}
location /images {
}
Answer the question
In order to leave comments, you need to log in
nginx.org/ru/docs/http/ngx_http_limit_req_module.h...
Let's say it was like this:
You need to use map to create a new variable, for example, which will return an empty string as a key for limit_req_zone if there is something in $args.
map $args $key_ {
"" $key;
default "";
}
limit_req_zone $key_ zone=bot:10m rate=1r/s;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question