Allow Facebook access only in specific hours of the day with squid

squidtimewebfilter

I've been able to install squid on my Ubuntu Server with basic authentication and everything works perfectly.
Recently the boss asked to block facebook access and I did it with no problems.
Now it looks that he wants to give the users possibility to access during lunchtime…

Any ideas?

Best Answer

Taken from my configfile:

# When is Facebook allowed?
acl allowfacebooktime time MTWHF 12:15-13:45
# Facebook ACL
acl facebookdotcom  dstdomain .facebook.com
# Only allow Facebook as described by allowfacebooktime
http_access allow facebookdotcom allowfacebooktime
# Else block facebook
http_access deny facebookdotcom
Related Topic