RE: [squid-users] Bad sites syntax file

From: Chris Robertson <crobertson@dont-contact.us>
Date: Wed, 7 Dec 2005 16:59:45 -0900

> -----Original Message-----
> From: Palula Brasil [mailto:palula@uol.com.br]
> Sent: Wednesday, December 07, 2005 1:29 PM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Bad sites syntax file
>
>
> Hello everybody...
>
> I would like to know the correct syntax for the dstdomain command. For
> example I have a file called bad_sites.acl that has several
> domains that I
> don't want my clients to connect to...
>
> However here is a domain I would like to block:
> http://www.ci.tuscaloosa.al.us/ but I don't want to block
> that exact domain
> I would like to block any domains with the word tuscaloosa
> (but I don't want
> do use the bad_words.acl). I saw somewhere that I can block
> strings within
> dots of a domain on the file like this: ".tuscaloosa."
>
> This means that any site that has
> "anything.tuscaloosa.anything" should be
> blocked. There may be a syntax error within this line because it isn't
> working. Can anybody help me out?
>
> Thanks a lot!
>
>

To the best of my knowledge dstdomain matches "anything" only on a leading period, not a trailing one. I'm not sure that .tuscaloosa. would match anything at all... You might look into using a dstdom_regex acl.

Chris
Received on Wed Dec 07 2005 - 18:59:47 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST