Computing.Net > Forums > Networking > Please help with the quid sever

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Please help with the quid sever

Reply to Message Icon

Name: Malwande
Date: October 5, 2009 at 06:56:03 Pacific
OS: linux
Product: Philips Philips spp1594wa squid surge protector with 5 flexible outlets, coaxial and telephone protection
Subcategory: Servers
Tags: linux
Comment:

How to block a website on a squid?
Please help!!!



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: October 5, 2009 at 07:55:47 Pacific
Reply:

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.
E.g.
If you'd like to block http://www.squid-cache.org/Intro, enter the following line to your domains.exclude

http\:\/\/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_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:
http://www.squid-cache.org
Then click on About Squid. This should be denied.


0

Response Number 2
Name: paulsep
Date: October 5, 2009 at 08:13:44 Pacific
Reply:

Forgot to mention.
In the domain.exclude file, you can add one URL per line.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Please help with the quid sever

Please help with subfolders in .PST!!!!! www.computing.net/answers/networking/please-help-with-subfolders-in-pst/1785.html

Please help with wirless networking!! www.computing.net/answers/networking/please-help-with-wirless-networking-/5128.html

please help with my VPN www.computing.net/answers/networking/please-help-with-my-vpn/20818.html