Search squid archive

Re: Re: Allow access to just one site, blocking all the others.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux