Apply nginx rate limits to certain IP addresses, and another rate limit to others
stuwat
nginx-forum at forum.nginx.org
Mon Oct 30 16:12:22 UTC 2017
Or should it be more like this?
geo $limited_net {
default 0;
111.222.333.444 1;
}
map $limited_net $addr_to_limit {
0 "";
1 $binary_remote_addr;
}
limit_req_zone $addr_to_limit zone=two:10m rate=15r/m;
limit_req_zone $binary_remote_addr; zone=three:10m rate=25r/m;
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277126,277133#msg-277133
More information about the nginx
mailing list