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

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 18 Nov 2008 09:26:09 +0100

On mån, 2008-11-17 at 15:25 +0000, 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

Hint 1: You can negate acls with !

Hint 2: You only need a single deny line.

Regards
Henrik

Received on Tue Nov 18 2008 - 08:26:20 MST

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