Re: [squid-users] Time based access

From: Edmonds Namasenda <namasenda_at_gmail.com>
Date: Fri, 20 Jul 2012 14:18:14 +0300

Try the below,

acl urlsFB dstdomain -r .facebook.com .fbcdn.net # Sample Facebook domains
acl timedFB time SMTWHFA 12:30-13:29 # Accessible time
for Facebook

# Place the below above all access rules
http_access deny urlsFB !timedFB # Rule to
deny Facebook unless it is time

My 2Cents.
# Edmonds.

On Fri, Jul 20, 2012 at 1:55 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>
> On 20/07/2012 9:41 p.m., a bv wrote:
>>
>> Hi ,
>>
>> I tried to write a timebased acl for for testing at special time of
>> day but it didnt seem to work. I tried to block the access to CNN
>> using dstdomain .cnn.com.
>>
>> My aim is to allow facebook at special times of the day at lunch time
>> for example.
>>
>> Can someone provide me a working rule for which will allow access
>> facebook access at 12.30-13.30 ?
>>
>>
>> Regards
>
>
> Maybe it had something to do with what you configured. Or what software
> you were configuring to achieve it.
>
> ... details. Please!
Received on Fri Jul 20 2012 - 11:18:21 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 20 2012 - 12:00:01 MDT