I’m looking for the easiest way to block websites on my squid proxy. I’ve considered squidguard, but I’d prefer to have it as simple as possible to block/unblock very few websites according to the time of the day.
I have created an ACL containing the URL to block, with the lines
acl bad_url dstdomain "/etc/squid/bad_url.squid"
http_access deny bad_url
I remove those lines from crontab using a sed command, and it works as planned.
However accessing the site through HTTPS still works.
Any solution within Squid ?
In addition to what you have already:
add the following information
your final configuration will look something like this;