Nginx配置IP白名单和黑名单
location / {
allow 123.34.22.15;
allow 33.56.32.1/100;
deny all;
}
location / {
deny 123.34.22.15;
}
特定目录访问限制
location /tree/list {
allow 123.34.22.15;
deny all;
}
location / {
allow 123.34.22.15;
allow 33.56.32.1/100;
deny all;
}
location / {
deny 123.34.22.15;
}
特定目录访问限制
location /tree/list {
allow 123.34.22.15;
deny all;
}