Re: [squid-users] Squid content filtering and redirection

From: Helmut Hullen <Hullen_at_t-online.de>
Date: 10 Nov 2010 17:40:00 +0100

Hallo, Tóth,

Du meintest am 10.11.10:

>>> Is there a way to deny access to sites containing certain words?
>>> I'm thinking aoubt a wordlist or something?

>> Perhaps you are searching something like "squidGuard".

> It's possible, I just would like to know if this could be done within
> squid itself. Also a little bit of modification.
> I would like to look for "ABC" word only in the site name, not in
> it's content. Like deny access to www.this-is-my-abc.com but dont
> filter a site containg some paragraphs about ABC-s.

> Could it be done?

[please don't top post, please don't fullquote - thank you]

One possible way:

In "squid.conf"

  # Schmuddelfilter
  include /etc/squid/conf.d/schmuddel.conf

with the file "/etc/squid/conf.d/schmuddel.conf"

  # Schmuddelfilter
  acl verboten url_regex "/etc/squid/schmuddel"
  acl ausnahme url_regex "/etc/squid/whitelist"
  http_access allow ausnahme
  http_access deny verboten

and the wordlist files "/etc/squid/schmuddel" and "/etc/squid/verboten",
one entry per line.

As far as I know "squid" can't check the contents but only can check
URLs etc.

Viele Gruesse!
Helmut
Received on Wed Nov 10 2010 - 16:41:33 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 11 2010 - 12:00:06 MST