Sunday, September 27, 2009

Squid对访问特定域名的验证


acl web_server src web cache
auth_param basic program /opt/packages/squid/libexec/ncsa_auth /opt/packages/squid/etc/squid_passwd
acl deny_domain dstdomain www.sina.com sina.com
acl ncsa_users proxy_auth REQUIRED
http_access allow !deny_domain
http_access allow web_server
http_access allow ncsa_users

No comments:

Post a Comment