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

From: Christoph Haas <email@dont-contact.us>
Date: Mon, 22 May 2006 12:30:49 +0200

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.
Received on Mon May 22 2006 - 04:30:53 MDT

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