Re: [squid-users] Quick ACL blocking question.

From: Chris Robertson <crobertson@dont-contact.us>
Date: Tue, 09 May 2006 15:41:48 -0800

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
Received on Tue May 09 2006 - 17:42:22 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT