Search squid archive

Re: Quick ACL blocking question.

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

 



Tim Bates wrote:

Just a fairly quick question to the ACL gurus....
Is there a quick easy way to block all of a domain, except for a specific subdomain? For example, I need to block "live.com", but allow "mail.live.com".
Currently in squid.conf I have:
       acl BlockedSites dstdomain "/etc/squid/blockedsites.txt"
and that file contains a list of domains I need to block.

Tim B


I'm not sure that I qualify as a guru, but something like this should suffice...

acl AllowedSite dstdomain mail.live.com
acl BlockedSites dstdomain "/etc/squid/blockedsites.txt"

http_access allow our_networks AllowedSite
http_access deny BlockedSites

Chris

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

  Powered by Linux