Re: [squid-users] allow browsing on certain times

From: Peter Albrecht <pa@dont-contact.us>
Date: Wed, 14 Jul 2004 14:36:30 +0200

Hi,

On Wednesday 14 July 2004 14:07, Gert Brits wrote:
> Hi all
>
> Does anyone have the configuration on hand, to only allow certain user to
> brows at certain times of the day ?
>
> Like allow user joe to brows between 08:00-17:00
>
> and then extra to allow user joe to brows only on Mondays to brows between
> 08:00-17:00
>

have a look at the acl "time" and "ident". From squid.conf:

# acl aclname time [day-abbrevs] [h1:m1-h2:m2]
# day-abbrevs:
# S - Sunday
# M - Monday
# T - Tuesday
# W - Wednesday
# H - Thursday
# F - Friday
# A - Saturday
# h1:m1 must be less than h2:m2
...
# acl aclname ident username ...
# acl aclname ident_regex [-i] pattern ...

Define your time and combine it with the acl for the user:

acl monday time m 08:00-17:00
acl joe ident joe
http_access allow joe monday

Make sure you have an ident daemon running on your client.

Regards,

Peter

-- 
Peter Albrecht, SUSE LINUX AG, peter.albrecht@suse.de
Received on Wed Jul 14 2004 - 06:36:34 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:02 MDT