Rate limit per day

Francis Daly francis at daoine.org
Wed Oct 5 06:39:50 UTC 2016


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 at daoine.org



More information about the nginx mailing list