Using 444

Bernard Rosset bernard+freenginx at rosset.net
Sat Sep 27 18:44:39 UTC 2025


> Again thanks, I had tried various 'location' lines such as
>      limit_req_zone $binary_remote_addr zone=mylimit:5m rate=1r/s;
>      limit_req zone=mylimit burst=5 nodelay;
> 
> without success... obviously haven't fully understood

I would suggest to read 
https://freenginx.org/en/docs/http/ngx_http_limit_req_module.html again; 
sometimes details only "click" after on a n-th read.

You mentioned 250k requests/day, but you did not characterise the 
population spread.
My concern there would be if you 5 mebibytes storage is enough to handle 
all the IP addresses you're trying to rate-limit: per documentation 
(calculus details in there), one mebibyte stores either 16k IPv4 or 8k IPv6.
Overflow is dealt with LRU.
-- 
Bernard Rosset
https://rosset.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4736 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://freenginx.org/pipermail/nginx/attachments/20250927/d2898a1f/attachment.p7s>


More information about the nginx mailing list