[Reference:<_A2308@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en
[DeleGate-En] Re: content-type regexp cfi
On 06/24/03(18:39) you Negyesi Karoly <paqeqbdyi-qjkxlplpoza6.ml@delegate.org> wrote
in <_A2308@delegate-en.ML_>
|I'd like to run a virus scanner if the http header field,
|content-type is not text/* and is not image/*
If the scanner is able to work as a filter program which gets a HTTP
message from its standard input and output transferred message to its
standard output, then it can be used as follows.
1) execute DeleGate with a FTOCL parameter
delegated -P8080 SERVER=http FTOCL=filter.cfi
2) the content of filter.cfi is like this
#!cfi
Content-Type: text/
Content-Type: image/
--
Message-Filter: virus-scanner
3) Place the filter.cfi and virus-scanner at LIBDIR or at the directry
where DeleGate's executable is.
See <URL:http://www.delegate.org/delegate/Manual.htm#CFIscript> for more
details.
Cheers,
Yutaka
--
@ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller
|