Re: Help needed: How to make an ACL that only works some times of

From: Benarson Behajaina Rodriguez <[email protected]>
Date: Tue, 3 Mar 1998 11:00:00 +0100 (MET)

Ola Garstad wrote:
>
>
> I what to make an ACL that prevents users from accessing URLs that contain
> the word "game" during working hours. Outside working hours they may access
> them.
>
> I have found out how to prevent it all the time, but not only during
> working hours.
Use ACL (acl aclname time [day-abbrevs] [h1:m1-h2:m2])

> Can someone please show me how to do that?
>
> And is it possible to attach a message saying that "this URL is not
> available during work hours"?
Yes.

here is an example (from squid.conf):

deny_info http://yourweb.server.foo/message.html WorkingHours
acl WorkingHours time MTWHF 08:00-16:00
acl GAME urlpath_regex game
http_access deny GAME WorkingHours

btw, I'm running Squid 1.1.20
message.html is the HTML document that contains your message

Hope this will help.

-- 
Benarson.
Received on Tue Mar 03 1998 - 02:22:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:08 MST