Please help with the quid sever

Philips Philips spp1594wa squid surge pr...
October 5, 2009 at 06:56:03
Specs: linux
How to block a website on a squid?
Please help!!!

See More: Please help with the quid sever

Report •

October 5, 2009 at 07:55:47
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/squid

Create a new file named domains.exclude
vi domains.exclude

In this file, put all the sites, you want to block.
If you'd like to block, 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.

Report •

October 5, 2009 at 08:13:44
Forgot to mention.
In the domain.exclude file, you can add one URL per line.

Report •

Related Solutions

Ask Question