18 Comments
- inactive, on 10/12/2007, -8/+17Ask your mom... I contracted one from her last night.
- Agret, on 10/12/2007, -0/+6"I use Clam Anti-Virus on my PC and it is just as good for me at Norton was."
I thought Clam AV was supposed to be good and here you are telling me it does a ***** job.... - brianez21, on 10/12/2007, -1/+5ClamAV is pretty much the standard for Linux/opensource antivrus.
- 08x359, on 10/12/2007, -1/+5Why is this getting dugg down? I was wondering the same thing.
- jhuebel, on 10/12/2007, -0/+3haha, that's a good one. However, Norton is considered one of the "benchmark" antivirus programs for Windows. So that was meant as a compliment. ClamAV is a great AV tool though. I keep a portable copy of ClamWin[1] on a write-protected USB key for emergencies.
[1] http://portableapps.com/apps/utilities/clamwin_portable - xertys, on 10/12/2007, -0/+2This is mainly for scanning incoming binaries from Windows users.
- drewhenson, on 10/12/2007, -7/+9Is ClamAV any good? Cause if its not then whats the point?
- countmandible, on 11/15/2007, -2/+3I use Clam Anti-Virus on my PC and it is just as good for me at Norton was. The upside however is that my computer is not bogged down with 700 process all related to virus scanning.
Regular updates to the library and the software. I would highly recommend Clam AV. - MasteRR, on 10/12/2007, -0/+1I wish I had known about this 6 months ago when I wrote a PHP function to do the same thing. Granted it was only like 10 lines, but why reinvent the wheel?
Basically it passed the uploaded file to /usr/bin/clamscan via the system() fuction. - mike503, on 10/12/2007, -0/+0i wrote this. seems to work well. it's designed just to scan media files... so i could turn off archive scanning.
function check_virus($file) {
$output = trim(shell_exec("/usr/bin/clamscan --tempdir=/tmp --stdout --no-summary --no-archive $file"));
if(substr($output,strlen($output)-2,2) == "OK") { return false; }
return true;
}
however, i still have bookmarked this, it may be useful - JimXugle, on 10/12/2007, -2/+2Why not just use the code below? Of course you would have to swap the two messages depending on if a virus found returns 1 or 0...
if (system("clamscan uploadedfile.rar"))
{
echo "File clean.";
}
else
{
echo "File infected.";
} - SjRaptor, on 10/12/2007, -0/+0And how do you trust those users? Ever hear of non-repudiation?
- r3dm00n, on 10/12/2007, -1/+1because some ISPs don't let you use the system() call???
- Edkim, on 10/12/2007, -2/+1At last!! I've been waiting a long time for this...
- Hush, on 10/12/2007, -4/+2AHAHH *****! (you)
- monergism, on 10/12/2007, -4/+1There is no reason to upload executable "user content".
Any data on MY server is put there by trusted/responsible/liable individuals. - ckufggid1, on 10/12/2007, -13/+1AHAHH Viruses! hahahahahhah (mac).
- schestowitz, on 10/12/2007, -16/+3Virus? What's that?


What is Digg?
Digg is coming to a city (and computer) near you! Check out all the details on our