On Tue, Apr 6, 2010 at 4:21 PM, Walubengo J <jwalu@yahoo.com> wrote:
Am under some pressure to avail facebook during lunch time (1:00-2:00pm) and after working hours (possibly 5:00pm-7:00am). 

Could someone give me the rule and where to punch it in under /etc/dansguardian/? or maybe /etc/squid?

Hi Walu,

Something like this will do for your case, for squid.conf:

acl TIMELunch                 time MTWHF 12:59-13:59
acl TIMEafterhoursAFT      time MTWHF 17:00-24:00
acl TIMEafterhoursMORN  time MTWHF 00:00-09:00
acl TIMEWASTAGESITE dstdomain "/etc/squid/time-wastage-sites.txt" # contains.facebook.com, .gmail.com, etc, per line

http_access allow TIMEWASTAGESITE TIMElunch
http_access allow TIMEWASTAGESITE TIMEafterhoursAFT
http_access allow TIMEWASTAGESITE TIMEafterhoursMORN
http_access deny TIMEWASTAGESITE
http_access allow
 

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
              -- Lucky Dube