nginx白名单黑名单设置
- 白名单设置,访问根目录
location / {
allow 123.34.22.155;
allow 33.56.32.1/100;
deny all;
}
- 黑名单设置,访问根目录
location / {
deny 123.34.22.155;
}
2024-02-09 17:43:10
location / {
allow 123.34.22.155;
allow 33.56.32.1/100;
deny all;
}
location / {
deny 123.34.22.155;
}