Search squid archive

Re: Squid content filtering and redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux