Sample Configurations
To help you fully understand how Squid access control works, and to give you a head start developing your own rules, the following are some ACL lines you can try. Each line is preceded with one or more comment lines (starting with a #) explaining what it does:
# include the domains news.bbc.co.uk and slashdot.org# and not newsimg.bbc.co.uk or www.slashdot.org.acl newssites dstdomain news.bbc.co.uk slashdot.org# include any subdomains or bbc.co.uk or slashdot.orgacl newssites dstdomain .bbc.co.uk .slashdot.org# only include sites located in Canadaacl canadasites dstdomain .ca # only include working hoursacl workhours time MTWHF 9:00-18:00# only include lunchtimesacl lunchtimes time MTWHF 13:00-14:00# only include weekends ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access