Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blocking "undesirable" sites using squid 1

Status
Not open for further replies.

rmwendwa

MIS
Mar 23, 2005
22
KE
i am a linux novice with no much experience in it but i have a question. How do i block "undesirable" sites using squid.
 
Your best bet is to get yourself DansGuardian. This will do the job for you.
 
I was using DansGuardian with squid at a primary school. It works really well. You can download updated versions of 'blacklisted' sites.
 
Yes it did. The previous title contained a word that rhymes with 'corn'.
 
It's quite simple:
go to /etc/squid.conf and put in there something like

acl users src 10.0.0.0/24
acl undesirable_domains url_regex sexxs.com
http_acces allow users !undesirable_domains
http_access deny users

In this example 10.0.0.0/24 is the subnet in which you need to apply the filtering and sexxs.com is some text which are not allowed inside the URL.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top