LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How To block by word in squid (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-block-by-word-in-squid-678219/)

giomax 10-22-2008 12:47 AM

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.

win32sux 10-22-2008 07:12 PM

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.

giomax 10-23-2008 01:23 AM

Quote:

Originally Posted by win32sux (Post 3319187)
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

win32sux 10-23-2008 07:00 AM

Quote:

Originally Posted by giomax (Post 3319414)
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.


All times are GMT -5. The time now is 12:23 AM.