squid-windows icon indicating copy to clipboard operation
squid-windows copied to clipboard

Cannot work blacklist file function

Open cafepods opened this issue 9 years ago • 2 comments

It seems it cannot work blacklist file in version 1.3.5.14. When I configure the blacklist directly in squid.conf, it works correctly. But it cannot work when I use blacklist files.

In version 2.7 , it works fine with the same settings .

cafepods avatar Feb 21 '16 01:02 cafepods

Could you please post your config with blacklist files? Thank you!

ea-at-diladele-com avatar Feb 26 '16 20:02 ea-at-diladele-com

I have it working with mvps hosts.txt, and my own whitelist.txt for a few domains in the hosts.txt i dont want blocked, referenced like this (hosts.txt and whitelist.txt file in hosts subfolder):

acl whitelist dstdomain "/cygdrive/e/Squid/etc/squid/hosts/whitelist.txt"

acl hosts dstdomain "/cygdrive/e/Squid/etc/squid/hosts/hosts.txt"

http_access allow whitelist

http_access deny hosts http_reply_access deny hosts

Dont forget your lines or my demo ones above lines must appear before:

http_access deny all

stylemessiah avatar Apr 17 '16 10:04 stylemessiah