• 首页
  • 本文PC版

nginx禁用公网ip访问某个路径

2024-04-09 09:58:23
location =/aaa {
allow 127.0.0.0/24;
allow 192.168.0.0/16;
allow 172.16.0.0/12;
allow 10.0.0.0/8;
deny all;
}
/aaa为需要禁止访问的路径

https://blog.csdn.net/gjy11011/article/details/124982884

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »

© 2018 MIP for Typecho , Designed by Holmesian.