For People interested in this kind of filtering,
put "#!cfi" instead of "#!/bin/sh" in the script, it will work much better
> On 05/18/99(00:36) you "Techadmin" <email@example.com> wrote
> in <_A447@delegate-en.ML_>
> |I'd like to make a http proxy which filters out URLs by reading the HTML
files, per example, which
> |deny acces to all html files which contains the word "warez".
> |Does Delegate support this kind of filtering ?
> A naive filtering based on contents of transferred data can be
> achieved with "CFI script" like this:
> delegated -P8080 FTOCL=/path/of/ftocl.cfi
> [The content of /path/of/ftocl.cfi]
> Content-Type: text/html
> cat > $TMP;
> grep -l "People" $TMP > /dev/null;
> if [ $? = 0 ]; then
> echo "HTTP/1.0 403";
> cat $TMP;
> rm $TMP
> But note that this filtering mechanism is very inefficient to be
> used for heavily loaded DeleGates.
> Yutaka Sato <firstname.lastname@example.org> http://www.etl.go.jp/~ysato/ @ @
> Computer Science Division, Electrotechnical Laboratory ( - )
> 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan _< >_