Re: [squid-users] Denying based on 2 ACLs

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 22 Sep 2011 11:21:35 +1200

On 22/09/11 10:33, Andrew Beverley wrote:
> Hi,
>
> I would like to deny a request with http_access, but based on 2 ACLs. Is
> there a way to do this?
>
> The reason is that I want to produce a splash page, but only display it
> between certain times. I was thinking something like:
>
> http_access deny !new_users&& correct_time
>
> where new_users and correct_time are ACLs. However, I don't think that's
> possible.
>
> Is there are way to achieve it?

Yes.
  http://wiki.squid-cache.org/SquidFaq/SquidAcl#And.2BAC8-Or_logic

also
  http://wiki.squid-cache.org/SquidFaq/OrderIsImportant

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.15
   Beta testers wanted for 3.2.0.12
Received on Wed Sep 21 2011 - 23:21:43 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 22 2011 - 12:00:03 MDT