title: Nginx limit requests by parameter in body or query?
body: <p>I need to limit (GET,POST) requests with specific parameter containing in body or query parameters. How to configure NGINX for that?</p>
  
  <p>Current nginx config: </p>
  
  <pre><code>limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
  server {
      listen       8044;
      limit_req_log_level warn;
      location /route/{
         limit_req zone=mylimit burst=1000;
         proxy_pass https://the_Cool_server/;
   }}
  </code></pre>
  
  <p>For example- the request like:</p>
  
  <p><code>http://localhost:8044/route/path1/path2?param1=param1VALUE_to_limit1&amp;param2VALUEAWESOME</code></p>
  
  <p>I need the NGINX to limit requests with param1 value per second. So, every request with same param1 should be limited to 10 per second.</p>
  
  <p>Maybe i should use openresty for it?</p>