28 Sep

Restricting Web Access By Time

http://www.siliconvalleyccie.com/linux-adv/squid.htm

Access control lists can be created with time parameters. Here are some quick examples. Remember to restart Squid for the changes to take effect.

Only Allow Business Hour Access From The Home Network

#

# Add this to the bottom of the ACL section of squid.conf

#

acl home_network src 192.168.1.0/24

acl business_hours time M T W H F 9:00-17:00

#

# Add this at the top of the http_access section of squid.conf

#

http_access allow home_network business_hours
Only Allow Access In The Morning

#

# Add this to the bottom of the ACL section of squid.conf

#

acl mornings time 08:00-12:00

#

# Add this at the top of the http_access section of squid.conf

#

http_access allow mornings