Re: [squid-users] squid dstdomain www. regex

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 15 Feb 2011 12:58:04 +1300

 On Mon, 14 Feb 2011 17:35:17 -0500, alexus wrote:
> is there a way for me to block a list of domains that's reside in
> outside file and somehow append a small regular expression in front
> of
> it.

 That would be using regex. Not dstdomain. Two VERY different
 algorithms.

> the problem is that list contains only domains and if i use dstdomain
> then people put www. in front of domain and squid doesn't catch it :(
>
> any solution?

 dstdomain performs a FQDN-order scan of the domain segments (right to
 left). To ignore any on the left-hand side simply start the dstdomain
 entry with a dot (.).

 eg:
  acl example dstdomain .example.com

 Amos
Received on Mon Feb 14 2011 - 23:58:08 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 15 2011 - 12:00:02 MST