1. 配置denyWeb
添加denyWeb到/etc/squid/squid.conf
acl denyWeb dstdomain "/etc/squid/denyWeb.list"
http_access deny denyWeb
2. denyWeb.list
cat /etc/squid/denyWeb.list
.google.com
.youtub.com
.twitter.com
.facebook.com
.msn.com
重启squid 服务
service squid restart
3. 验证代理
- windows:IE或者Chrome设置代理验证
- Mac/Linux: export http_proxy=http://10.0.0.4:3128;curl www.baidu.com