ubuntu:squid:block_websites
This is an old revision of the document!
Ubuntu - Squid - Block Websites
You can block websites from the proxy users, just create a separate file that will be the list of domains you want to block and point that file from the squid configuration like this:
sudo touch /etc/squid/blocked
Then type all websites you want to block one per line in that file and save it.
Change the squid configuration to block those websites under acl list and http_access list.
- /etc/squid/squid.conf
acl blocked_sites dstdomain "/etc/squid/blocked" http_access deny blocked_sites
Restart Squid
sudo systemctl restart squid
There are a lot of ready to use lists on the web and they are categorized, you can use them in squid, like MESD blacklists, Shalla’s Blacklists.
ubuntu/squid/block_websites.1575937616.txt.gz · Last modified: 2020/07/15 09:30 (external edit)