Re: [squid-users] acl deny versus acl allow?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 18 Nov 2008 12:43:49 +1300

Roger Thomas wrote:
> Hi,
>
> This is my first time posting to the mailing list, but I just wanted to know
> whether anyone knew how to do the below:
>
> I use the following to block a list of words from URL’s:
>
> acl misc_block_list url_regex -i "/etc/squid/block/misc_block.list"
> http_access deny misc_block_list
>
> I am trying to allow certain words, so for example, the word sex is in the
> block list, but I want the word sussex to be allowed.
> I have created another file called misc_allow.list but I’m not sure how to
> tell it to allow. I presumed something like this:
>
> acl misc_allow_list url_regex -i "/etc/squid/block/misc_allow.list"
> http_access allow deny misc_allow_list
>
> this doesn’t work though.

The word 'deny' is fully replaced with the word 'allow'.

Please read and understand the FAQ on ACL before continuing with your
testing:
   http://wiki.squid-cache.org/SquidFaq/SquidAcl

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
   Current Beta Squid 3.1.0.2
Received on Mon Nov 17 2008 - 23:43:53 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 18 2008 - 12:00:03 MST