|This can be managed by useing the ACLs in the squid.conf file.|
Change to the folder of the squid.conf file.
Create a new file named domains.exclude
In this file, put all the sites, you want to block.
If you'd like to block http://www.squid-cache.org/Intro, enter the following line to your domains.exclude
Save the file and quite vi editor.
Now you have to add 2 lines to your squid.conf file.
Open squid.conf in your editor, e.g. vi.
Add the following 2 lines:
acl forbidden_urls url_regex -i "/etc/squid/domains.exclude"
http_access deny forbidden_urls
Save the squid.conf file.
Now reload squid by rcsquid reload.
Test whether it works, but it will work.
In you browser go to the site:
Then click on About Squid. This should be denied.