编辑 server-root/httpacl/gen*.proxy-admserv.acl 文件,除了 user 和 group 之外,再将 ip 添加到验证列表中,如下所示:
acl "proxy-admserv"; authenticate (user,group,ip) { database = "default"; method = "basic"; };
添加以下访问控制条目:
deny absolute (all) ip !="ip_for_which_access_is_allowed ";
例如:
acl "proxy-admserv"; authenticate (user,group,ip) { database = "default"; method = "basic"; }; deny absolute (all) ip !="205.217.243.119";