I’m using the limit_req_zone module. I would like it to act only on some
requests that have a certain string in one variable in the query string
the URL.For example, lets say that I’m providing a IP geolocation
and that in the URL there is a query string like this:
I would like the rule to detect when the “key” parameter ends with “2X”,
in such case to apply the limitation.
What I really need is to give NGINX a secret message. The “key”
would end in “01X”, “02X”, “03X” (etc). This would indicate Nginx the
limitation of queries per minute, and Nginx would apply a different rate
each request, depending on the “message”.
Is there a way to do that?
Thanks in advance!
Posted at Nginx Forum: