作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在 squid 3.2.3 中拒绝所有以 iso 开头的 URL
所以,我放入了 squid.conf:
acl torrent_sites dstdom_regex -i iso
acl music_sites dstdom_regex -i music
http_access allow localhost
http_access allow localnetp1
http_access deny torrent_sites localnetp1
http_access deny music_sites
http_access deny ftp_request
http_access deny localnetp1 norm_conn
http_access deny all
最佳答案
我正在使用稍微不同的方法。我正在使用标准的 squid.conf 文件,但更改了 #acl localnet src 192.168.0.0/16
到我的网络 IE:“192.168.1.0”。然后在 conf 文件中搜索读取的部分,
#deny_info TCP_RESET ads".
acl torrent dstdom_regex "/path/torrent_sites.txt"
http_access deny torrent
acl music dstdom_regex "/path/music_sites.txt"
http_access deny music
/path/torrent_sites.txt
和
/path/music_sites.txt
),其中包含以下格式的 URL。
(^|\.)isohunt\.com$
(^|\.)thepiratebay\.org$
(^|\.)torrentz\.com$
sudo /etc/init.d/squid3 restart
关于proxy - 鱿鱼 dstdom_regex 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13690011/
我想在 squid 3.2.3 中拒绝所有以 iso 开头的 URL 所以,我放入了 squid.conf: acl torrent_sites dstdom_regex -i iso acl
我是一名优秀的程序员,十分优秀!