Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
This can be managed by useing the ACLs in the squid.conf file.
Short description:
Change to the folder of the squid.conf file.
cd /etc/squidCreate a new file named domains.exclude
vi domains.excludeIn this file, put all the sites, you want to block.
E.g.
If you'd like to block http://www.squid-cache.org/Intro, enter the following line to your domains.excludehttp\:\/\/www\.squid\-cache\.org\/Intro
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_urlsSave 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:
http://www.squid-cache.org
Then click on About Squid. This should be denied.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |