Fenelon Fenelon - 2 years ago 166
Linux Question

Restrict Squid access to only one site

How do I restrict access to only one website through my Squid proxy?

The following doesn't work...

acl amazon_ireland src
acl some_site url_regex google

http_access allow amazon_ireland
http_access allow some_site
http_access deny all

Answer Source

Have a look at the squid FAQ, there is a perfect example for your setup.

Squid FAQ

 acl GOOD dst
 http_access allow GOOD
 http_access deny all

if you want to match by domain-name

 acl GOOD dstdomain .amazon.ie
 http_access allow GOOD
 http_access deny all
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download