Re: [squid-users] ACL restrictions by day of the week?

From: François Cami <fcami@dont-contact.us>
Date: Mon, 3 Mar 2008 18:12:49 +0100

On Mon, 3 Mar 2008 12:00:17 -0500
Steve Snyder <swsnyder@insightbb.com> wrote:

> How do I allow/disallow access to specific sites by the day of the week?
>
> Example: allow connections to http://www.fun_n_games.com only on Saturdays
> and Sundays.
>
> It's easy enough to see that
>
> acl fun_n_games dstdomain .fun_n_games.com
> acl funtime time SA # Sunday & Saturday
>
> But I don't see how to combine the 2 definitions into a single rule that
> imposes the restrictions I want.
>
> Any advice out there on how to do this?

I'd set up 2 squid.conf, one for weekends, one for weekdays, then use crontab
to switch between configuration files and launch and squid -k reconfigure...

François
Received on Mon Mar 03 2008 - 10:13:00 MST

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:04 MDT