Restrict Squid access to only one site Restrict Squid access to only one site linux linux

Restrict Squid access to only one site


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

Squid FAQ

 acl GOOD dst 10.0.0.1 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


Here is another way, where you can specify the source IP addres. And block specific sites such as youtube facebook

acl liberaip src 130.44.0.215acl block url_regex -i youtube facebookhttp_access allow liberaip !block