Squid ACL规则文件在Windows上不工作

Squid ACL规则文件在Windows上不工作,windows,web,acl,blocking,squid,Windows,Web,Acl,Blocking,Squid,我使用Windows服务器从文件到块广告托管并加载了一些规则。文件已加载,但ACL规则不起作用,我仍然可以访问位于文件中的网页。我怎样才能修好它 以下是我的封锁规则: #Block ads start acl ads_host dstdom_regex "c:/squid/etc/ad_block_host.txt" acl ads_ip dst "c:/squid/etc/ad_block_ip.txt" http_access deny ads_host http_access deny a

我使用Windows服务器从文件到块广告托管并加载了一些规则。文件已加载,但ACL规则不起作用,我仍然可以访问位于文件中的网页。我怎样才能修好它

以下是我的封锁规则:

#Block ads start
acl ads_host dstdom_regex "c:/squid/etc/ad_block_host.txt"
acl ads_ip dst "c:/squid/etc/ad_block_ip.txt"
http_access deny ads_host
http_access deny ads_ip
#Block ads end

使用URL_REGEX。只有这一点在Windows中对我有效。

使用url_regex-i而不是dstdomain,并使用任一主机名创建一个文件。例如,.facebook.com或简单的facebook。每行一个正则表达式就可以了。

你能试试dstdomain吗?我也试过dstdomain,但失败了对不起,你能解释更多吗?