Search squid archive

Re: ACL restrictions by day of the week?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 3 Mar 2008 12:00:17 -0500
Steve Snyder <swsnyder@xxxxxxxxxxxxx> 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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux