use a
time acl in the format:
Code:
acl aclname time [day-abbrevs] [h1:m1-h2:m2]
# [fast]
# day-abbrevs:
# S - Sunday
# M - Monday
# T - Tuesday
# W - Wednesday
# H - Thursday
# F - Friday
# A - Saturday
# h1:m1 must be less than h2:m2
for instance:
acl our_networks src 192.168.1.0/24 192.168.2.0/24
acl lunchtime time MTWHF 12:00-13:00
acl blocked_sites url_regex –i ‘/etc/squid/sites.txt’
http_access allow lunchtime blocked_sites
http_access deny blocked_sites
http_access allow our_networks