Hi, all,

My host provides good CGI support. Would it be possible for me to install, e.g., ClamAV under CGI-bin and then somehow use that to scan any files that get uploaded to my site?

TIA

Comments

mgifford’s picture

You'd think you'd be able to run ClamAV on the files directory using a cron job, but I haven't seen anyone try this. I did a quick search for shell or cron & ClamAV and didn't find anything. I'm Just trying to consolidate questions/responses to this question of antivirus checking for uploaded files:
http://drupal.org/node/7450
http://drupal.org/node/82226
http://drupal.org/node/82019
--
OpenConcept | SEO | Tech | Screencasts

rgracia’s picture

I am also concerned about virus scanning for uploaded files. Although I know my host checks, I am not sure how exhaustive it is. It's safe to expect that there are several layers of protection in these cases (server, client, email system), but you never know.

I am planning to deploy a Job postings area for the site I am planning and the main concern is that the files uploaded for application will get directly emailed to a member of our staff, now provided viruses are scanned at the server level, the person applying for a job, for instance, would get a warning at the upload attempt notifying them of the infected file, stopping the process there. This would be the ideal scenario for me. Same goes for uploaded files in general, the module should attempt a scan and notify the site visitor.

dugh’s picture

Would be nice to see a module for this in drupal.

Run clamav to scan files the instant they are uploaded, and return an error rejecting the file if a virus is found.

rgracia’s picture

Are there any open source virus scan projects out there that can be worked into a module for the uploads?

dugh’s picture

clamav is open source,
or do you mean open source php code for virus scanning?
If the latter, moodle is open source too and php-based, and it has code for running a virus scanner.

mgifford’s picture

That is very cool! I had downloaded that module, but had missed that.

Mike
--
OpenConcept | Volunteer Canada