Re: How to delay requests from once unauthorized IP address

2016-11-09 Thread hide
Hello Andrei. Thank you very much for your response but I cannot understand how I can take HTTP status 401 for a particular client into account with ngx_http_limit_req_module. I have some experience with ngx_http_limit_req_module: I limit the frequency of each client with $binary_remote_addr key.

How to delay requests from once unauthorized IP address

2016-10-25 Thread hide
Hello! My Nginx does fastcgi_pass to some CGI application. The CGI application can return HTTP status code 401. I want Nginx to return this status code to the user and prevent the next access of the user to the CGI application for 5 seconds. For example, the user accessed the CGI application thro