kns_admin
asked on
Squid proxy server: ban multiple websites via banned_domains in separate file
I am using the squid service on a CentOS-7 server
I want to ban a few websites, so I updated my configuration as following:
After I restart the Squid service, dom1.com is effectively blocked. But dom2.something.com and dom3.com are still accessible. Can you advise me about this?
I want to ban a few websites, so I updated my configuration as following:
$ sudo cat /etc/squid/banned_domains. txt
dom1.com
dom2.something.com
dom3.com
dom1.com
dom2.something.com
dom3.com
$ sudo grep ban /etc/squid/squid.conf
acl banned_domains dstdomain "/etc/squid/banned_domains .txt"
http_access deny banned_domains
acl banned_domains dstdomain "/etc/squid/banned_domains
http_access deny banned_domains
After I restart the Squid service, dom1.com is effectively blocked. But dom2.something.com and dom3.com are still accessible. Can you advise me about this?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.