You are not logged in.

#1 2012-06-10 05:59:27

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

squid and timed access to sites [SOLVED]

Hi All,

I am wanting to limit my daughter's access to facebook for certain hours of the day, I tried  the following acl lines in squid.conf
but it doesn't seem to work, the site does not open between 8pm and 8:30pm.

# FaceBook
acl facebook url_regex .facebook.com
acl daughter src 192.168.0.30
acl daughter_facebook_hours time D 20:00-20:30
http_access deny daughter facebook !daughter_facebook_hours
 

What is wrong with that picture?

Thanks.

Last edited by bmentink (2012-06-10 09:53:36)

Offline

#2 2012-06-10 07:39:35

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: squid and timed access to sites [SOLVED]

Try it as follows:

http_access allow daughter facebook daughter_facebook_hours
http_access deny daughter facebook

Burninate!

Offline

#3 2012-06-10 09:53:14

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: squid and timed access to sites [SOLVED]

Gcool wrote:

Try it as follows:

http_access allow daughter facebook daughter_facebook_hours
http_access deny daughter facebook

Thanks, but I found that I had inadvertently put a "D" for date in the line "acl daughter_facebook_hours time D 20:00-20:30"
Removing the D fixed it.

You way looks a bit cleaner though ..

Cheers,
B

Offline

Board footer

Powered by FluxBB