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/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to