Walgamotte, David wrote the following on 01/27/2004 09:20 PM :


Does anyone know how to use clamscan to scan http web uploads on and Apache/PHP server ?


Many Thanks

David

Depends on what you want exactly.

The easiest way is to modify the php code handling file uploads, pass the whole file once uploaded to clamav, fetch the return code and answer the POST with whatever you want to say to the user.

If you want to intercept every kind of file upload, you'll probably have to use an Apache module that will take over the POST processing. The problem here is that you'll have to handle the file infected case in a common way that may not be optimal (will you close the connection, answer a generic content, ...). I'm not an Apache coder, so I can't help here.
You might want to google around to find if somebody didn't already code a module like this.


Cheers,

--
Lionel Bouton - inet6
---------------------------------------------------------------------
  o              Siege social: 51, rue de Verdun - 92158 Suresnes
 /      _ __ _   Acces Bureaux: 33 rue Benoit Malon - 92150 Suresnes
/ /\  /_  / /_   France
\/  \/_  / /_/   Tel. +33 (0) 1 41 44 85 36
 Inetsys S.A.    Fax  +33 (0) 1 46 97 20 10




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to