Use with realip
module.
map $binary_remote_addr $subnet {
"~^(\C{8})" $1;
default $binary_remote_addr;
}
limit_req_zone $subnet zone=one:10m rate=1r/s;
1 min read
Use with realip
module.
map $binary_remote_addr $subnet {
"~^(\C{8})" $1;
default $binary_remote_addr;
}
limit_req_zone $subnet zone=one:10m rate=1r/s;