Welcome! Log In Create A New Profile

Advanced

Re: Rate limit per day

Francis Daly
October 05, 2016 02:42AM
On Mon, Oct 03, 2016 at 02:43:16PM +0530, nitin bhadauria wrote:

Hi there,

> Is it possible to use Module ngx_http_limit_req_module to rate limit
> request / day ?

No. (Unless the request rate is so high that it could also be expressed
per minute.)

The config interface only allows integer requests per second or per
minute.

The implementation seems to allow integer requests-per-thousand-seconds,
but it's not immediately clear to me how exact that can be at low numbers.

But if you wanted to play, minor patching could let you set values there,
which could be of the order of hundreds of request per day. Perhaps that
would work well enough for you?

Otherwise, it looks like it would require significant patching to
implement what you might want. At that point, you may be better off with
a different starting module.

Cheers,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rate limit per day

nitin bhadauria October 03, 2016 05:14AM

Re: Rate limit per day

Francis Daly October 05, 2016 02:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready