Jump to content

Recommended Posts

Hi

of course i have KasperInternet Security but what about the customers? what if one of them uploaded an infected file? is teh hosting company responsible about scanning uploads?

i mean by 'bad' infected files or virus files!

You can do this with a standard webhotel / shared host solution using just PHP.

 

But infected files or intentionally malicious files can't do anything until they are executed. The file would just be lying around. Of course if you then download the files and execute them you could be harmed by milicious / infected files.

 

So what do you users / customers upload and what do you do with the uploaded files?

 

 

Generally when you upload a file, you then move it and rename it.

Before doing that you'd execute a system command to run ya anti-virus on the file, if result good then move and rename, otherwise throw away and insult the offender grabbing all info possible.

this isn't the greatest information but it can't hurt

http://www.phpfreaks.com/forums/index.php?topic=209414.0

 

pretty much you are looking for a Command Line Anti-Virus program

for whatever OS your webserver is running.

 

If you can find the perfect one....then get it and install it on your webserver and use the exec function

I had a problam once were i got a upload script to upload .exe files for clients,

 

Then the idiots come along and started to add infected/virus files to the server so i was peed ......

 

my solution was.....

 

i used a 3rd party dos application to cheek the files uploaded,

if it foud the users file had a virus it deleted that file or put in in the chest

of the 3rd party program told the current user the file was infected and deleted.......

 

this was done using  exec() php function..................

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.