Re: [squid-users] Re: Allow access to just one site, blocking all the others.

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Thu, 22 Mar 2012 18:51:20 +0200

On 22/03/2012 12:38, GarethC wrote:
> Hi Carlos,
>
> Yes you can achieve this by using an ACL (Access control list), for
> example...
>
> acl allowedsites dstdomain google.com
> http_access allow allowedsites
>

i would recommend to use another acl for matching the source like:
acl localnet src 192.168.0.0/24
acl allowedsites dstdomain google.com
http_access allow localnet allowedsites
..... other http_access rules
http_access deny all

or else you will become open proxy for this site.
Regards,
Eliezer

> This will allow users to connect to www.google.com (and any other subdomain
> of google.com), and it will deny access to all other websites.
>
> Hope that helps.
> Gareth
>
> -----
> Follow me on...
>
> My Blog
> Twitter
> LinkedIn
> Facebook
>
> --
> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Allow-access-to-just-one-site-blocking-all-the-others-tp4494965p4495135.html
> Sent from the Squid - Users mailing list archive at Nabble.com.

-- 
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
elilezer <at> ngtech.co.il
Received on Thu Mar 22 2012 - 16:51:29 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 22 2012 - 12:00:03 MDT