LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 10-22-2008, 01:47 AM   #1
giomax
LQ Newbie
 
Registered: Oct 2008
Location: Georgia
Distribution: Fedora 9
Posts: 2
Thanked: 0
How To block by word in squid


[Log in to get rid of this advertisement]
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.
giomax is offline     Reply With Quote
Old 10-22-2008, 08:12 PM   #2
win32sux
Moderator
 
Registered: Jul 2003
Distribution: Ubuntu 8.10
Posts: 8,607
Thanked: 108
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.
win32sux is offline     Reply With Quote
Old 10-23-2008, 02:23 AM   #3
giomax
LQ Newbie
 
Registered: Oct 2008
Location: Georgia
Distribution: Fedora 9
Posts: 2
Thanked: 0

Original Poster
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
giomax is offline     Reply With Quote
Old 10-23-2008, 08:00 AM   #4
win32sux
Moderator
 
Registered: Jul 2003
Distribution: Ubuntu 8.10
Posts: 8,607
Thanked: 108
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..
win32sux is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
block port squid sunlinux Linux - Security 12 06-26-2008 11:34 PM
block googletalk using squid ssilayaraja Linux - Networking 1 04-03-2008 09:28 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 06:01 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration