Re: [squid-users] Destination domain and regular expression

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 02 Jul 2010 11:40:43 +1200

Alberto Cappadonia wrote:
> Hi all,
>
> If I want to deny the access, for example, to google and I want that every
> google web site (in any language) cannot be accessed, can I write an acl
> like the following?
>
> ------
> acl googleDomains dstdom_regex -i .*\.google\..*
>
> http_access deny googleDomains
> ------
>
> or i have to use other acl like url_regex ?

For that use yes dstdom_regex is appropriate.

The .* at the start and end of the pattern can be removed.
Giving you:
   acl googleDomains dstdom_regex -i \.google\.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.4
Received on Thu Jul 01 2010 - 23:40:51 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 02 2010 - 12:00:03 MDT