Search code examples
windowswebaclblockingsquid

Squid ACL rules files are not working on Windows


I use a Windows server to host Squid and loaded some ACL rules from file to block ads. The file is loaded, but the ACL rules don't work, and I can still access the web page which is located in the file. How can I fix it?

These are my blocking rules:

#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

Solution

  • Use URL_REGEX. Only that worked for me in Windows.