squid_acl 举例
时间:2009-05-30 来源:lovejishu
acl office_times time MTWHFAS 00:00-8:30
acl office_times time MTWHFAS 17:30-23:59 acl allow_dstdomain dstdomain "/etc/squid/allow_site.txt" acl disable_extension urlpath_regex -i \.mp3$ \.flv$ \.vbs$ http_access deny office_times
http_access allow allow_dstdomain
http_access deny disable_extension
# cat /etc/squid/allow_site.txt
.sina.com
.baidu.com
acl office_times time MTWHFAS 17:30-23:59 acl allow_dstdomain dstdomain "/etc/squid/allow_site.txt" acl disable_extension urlpath_regex -i \.mp3$ \.flv$ \.vbs$ http_access deny office_times
http_access allow allow_dstdomain
http_access deny disable_extension
# cat /etc/squid/allow_site.txt
.sina.com
.baidu.com
相关阅读 更多 +