if ($remote_addr ~ and set $white_list for subnets?

antikurjers nginx-forum at forum.nginx.org
Sat Dec 28 12:25:14 UTC 2019


I resoved it!

out of blocks I add:

geo $mark_nocapcha {
    default         0;
    10.10.1.0/24    1;
    10.20.1.0/24     1;
    10.30.33.0/24     1;
    10.30.14.0/24     1;
}


ANd add/substitute  in  server block
if ($remote_addr ~ "(10.10.1.128)|(10.20.1.53)|(10.30.14.56)") {
to
if ($mark_nocapcha) {

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286617,286618#msg-286618



More information about the nginx mailing list