Squid block domain transparent

debian-wheezyPROXYsquid

How to block domain with transparent on Debian Squid?

http_port 3128 transparent

but I still have to set the manual proxy on the browser.

NB: I'm using Debian Wheezy with squid 2.7

Best Answer

If you want to block specific domain using squid proxy, you can use acl to define the domain to block and apply it to specific client IPs.

acl bad_dom dstdomain example.com
http_access deny bad_dom

You need to pay attention to other defined ACLs, because ACLs order does matter. So, this htt_access deny line should appear before allow everything else to some clients.

Related Topic