[Fwd: Re: [squid-users] Restrict Access based on time]

From: Harish Pokharel <harish@dont-contact.us>
Date: Mon, 22 May 2006 16:49:31 +0545 (NPT)

---------------------------- Original Message ----------------------------
Subject: Re: [squid-users] Restrict Access based on time
From: "Christoph Haas" <email@christoph-haas.de>
Date: Mon, May 22, 2006 4:15 pm
To: squid-users@squid-cache.org
--------------------------------------------------------------------------

On Mon, May 22, 2006 at 03:54:45PM +0545, Harish Pokharel wrote:
> How can I restrict a particular ip to access for a certain duration of
time?
> I am using a transparent proxy.
>
> I have done following
> #---------------------------------------------------
> acl testuser src 192.168.2.100/255.255.255.255
> acl testtime time D 07:00-08:55
> http_access allow testuser testtime
> #------------------------------------------------------

Add a:

 http_access deny testuser

I assume you are allowing access anyway below this line. So if the user
is not caught by your http_access line it would be granted access later.

Kindly
 Christoph

-- 
Please reply to the list - not to me personally. Personal replies are
ignored.
Thanks,
Hurray
-- 
Harish Pokharel
Received on Mon May 22 2006 - 05:05:30 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT