Squid site restrictions
In the office I needed a way to block some websites permanently and others outside of break times. After looking at some inline solutions I realised that I could easily do what was needed with squid alone. Here's how
I created the following ACLs in squid's config file :
acl blockedsites url_regex -i "/etc/squid/blocked.txt"
acl bannedsites url_regex -i "/etc/squid/banned.txt"
acl lunchtime time MTWHF 12:15-13:45
The I can apply these ACLs near the end of my squid ACL rules: