On 03/14/2001, 21:21 +0100, Remi POISSONNIER wrote:
> Hello
(Hi|Salut )!
> How can I use the regulary updated list from :
> ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/adult.tar.gz
> which containts two lists, which look like :
> `domain` :
> pussy.com
> nude-sex-girls.com
> `urls` :
> 192.116.254.185/images/gays
> 192.116.254.185/images/hetero
> 192.116.254.185/images/lesbian
> to DONTGET wwwoffle file, which look like :
> *://*/*.gz
> *://*/*.tar
>
> Is someone is able to write a bash script to convert them ?
For _simple_ rewriting, if you include a separate Dontget section
in wwwoffle.conf, something like:
cp -f wwwoffle.dontget.head wwwoffle.dontget
perl -pe 's!^(.*)$!*://$1*! unless /[*?(|)]/' hotlists >> wwwoffle.dontget
should do the trick, but these lists contain regexps, not
wwwoffle patterns (=> "unless ...").
Fortunately, regexp constructs are not efficient in
Squidguard filtering, so almost all strings are constant.
[ you should also pay attention to "\." ]
I don't know if a conversion tool regexp2pattern exists, maybe
you should ask to news:(fr.)?comp.lang.perl, for instance.
Another method is cascading Junkbuster and WWWoffle (FAQ.html#Q-5.4)
> Thanks.
Hope it helps,
--
Jacques L'helgoualc'h