[squid-users] Re: Problem to blocking friendster in specific time

From: Adam Aube <[email protected]>
Date: Thu, 09 Dec 2004 22:13:30 -0500

Please don't post a new question by replying to another message - it breaks
threading and makes the archives harder to follow. Instead, post your
question in a new message to the list.

David Kandou wrote:

> I want to allow my client computer to access www.friendster.com to
> specific time, but when i write script to squid.conf i found error
> message, can you help me to fix this problem.

Sure.

> acl friendster dstdomain .friendster

While Squid isn't giving any errors about this, it might not match what you
expect it to. It should be '.friendster.com' instead of just '.friendster'.

> acl WORKING time MTWHF 14:00-08:00

> 2004/12/10 09:02:43| squid.conf line 1715: acl WORKING time MTWH F
> 14:00-08:00
> 2004/12/10 09:02:43| aclParseTimeSpec: IGNORING Reversed time range

This error is self-explanatory - because your time range is crossing
midnight, Squid thinks the time range is reversed and ignores it.

To correct this, create two time acls, one for 14:00 - 23:59, Monday -
Friday, and the other for 0:00 - 8:00, Tuesday - Saturday. Adjust
http_access accordingly.

Adam
Received on Thu Dec 09 2004 - 20:13:41 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST