Squid Proxy 限制只能瀏覽特定網站
發表於 : 2010-12-01 10:49:01
http://yu-minspace.blogspot.com/2008/04 ... squid.html
代碼: 選擇全部
acl alldst_ip dst 0.0.0.0/0.0.0.0
acl MS dstdomain .microsoft.com .microsoft.com.tw .windowsupdate.com
acl symantec dstdomain .symantec.com
acl AB dstdomain .ab.com
acl ip1 dst 192.168.1.1/255.255.255.255
acl cd dst www.cd.org
http_access allow MS
http_access allow symantec
http_access allow AB
http_access allow ip1
http_access allow cd
http_access deny alldst_ip
#
# And finally deny all other access to this proxy
http_access allow all
http_access deny all