Article delegate-en/454 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: A functionnality of delegate ?
19 May 1999 07:15:15 GMT (Yutaka Sato)

On 05/18/99(00:36) you "Techadmin" <> 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 <>   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]