LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2008, 01:47 AM   #1
giomax
LQ Newbie
 
Registered: Oct 2008
Location: Georgia
Distribution: Fedora 9
Posts: 2

Rep: Reputation: 0
How To block by word in squid


Hi, All

I wanna know how to block Websites which contains on the page words like (sex xxx porn and so on.) I've tried so but didn't work.

acl blockbyword url_regex -i sex xxx
http_access deny blockbyword

and so

acl blockbyword urlpath_regex "/etc/squid/blockbyword.acl
http_access deny blockbyword

and put all the denied words.
 
Old 10-22-2008, 08:12 PM   #2
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,847

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Squid doesn't do content filtering. You'll need a third-party application, such as DansGuardian.

What you posted above is an attempt to do URL filtering, which has nothing to do with the actual page content.
 
Old 10-23-2008, 02:23 AM   #3
giomax
LQ Newbie
 
Registered: Oct 2008
Location: Georgia
Distribution: Fedora 9
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by win32sux View Post
Squid doesn't do content filtering. You'll need a third-party application, such as DansGuardian.

What you posted above is an attempt to do URL filtering, which has nothing to do with the actual page content.

And Can I install dansguardian on my proxy server and it will work with squid together without any problem?

Thanks for replay
 
Old 10-23-2008, 08:00 AM   #4
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,847

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Quote:
Originally Posted by giomax View Post
And Can I install dansguardian on my proxy server and it will work with squid together without any problem?
Yes, that's how it's designed to be used.

This question (and other frequently asked ones) are answered on the DG website.

Last edited by win32sux; 10-23-2008 at 08:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
block googletalk using squid ssilayaraja Linux - Networking 2 12-21-2009 05:54 AM
block port squid sunlinux Linux - Security 12 06-26-2008 11:34 PM
how to block yahoomail.com in squid sunlinux Linux - Networking 1 08-25-2007 05:21 PM
using squid to block p2p yawe_frek Linux - Software 2 08-15-2007 11:58 AM
Squid block sites linuxnirmal Linux - Security 5 11-15-2006 11:59 AM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration