Welcome! Log In Create A New Profile

Advanced

Re: Apply nginx rate limits to certain IP addresses, and another rate limit to others

October 30, 2017 12:12PM
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;
Subject Author Posted

Apply nginx rate limits to certain IP addresses, and another rate limit to others

stuwat October 30, 2017 09:46AM

Re: Apply nginx rate limits to certain IP addresses, and another rate limit to others

stuwat October 30, 2017 12:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
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