112.95.211.154 1;
geo $remote_addr $ip_whitelist{ default 0; include ip.conf; }
location /test { if ( $ip_whitelist = 0 ){ return 403; } index index.html; root /tmp; }
2)用没有把IP放到白名单中请求时;
nginx的白名单
原文:https://www.cnblogs.com/lemon-le/p/9204691.html