Jump to content

php trick for image upload virus and all that on a shared host.


fortnox007
 Share

Recommended Posts

Hi all i was wondering if someone knows a way to make sure an image which is uploaded isn't infected by a virus.

I have read about avclam, but if your on a shared host your mostly not allowed to add own software.

Isn't there maybe a php trick to resize the image which would magically remove a virus? ::)

If anyone knows a nice way or tricks to limit the virus breating space to a certain folder please let me know.

Link to comment
Share on other sites

Hmm i just read a little more and some security expert tells me that although it's theoretically possible for a jpg to contain virus information. The victim's computer still needs to be infected with a malicious .exe to extract the data from the jpg.

 

But if someone still knows a way to do a scan on uploaded files in a shared host environment (maybe a remote scan?)

I would love to hear it.

Link to comment
Share on other sites

I wrote a script that uses a virus scanner. You may need to install some software though.

 

http://wiki.dreamhost.com/ClamAV

Thanks for sharing mate ::) I am going to convince my host that they suck and should allow me to install it :)

I already contacted all the big brands in virus protection and until now none of them seems to offer a remote file scanner for shared hosts ( i see some money there ::)

Anyways thx for responding and sharing.

Unless anyone has some extra tips and or hints i considerig this topic solved in a way but feel free to post stuff

Link to comment
Share on other sites

This thread is more than a year old.

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.

 Share

×
×
  • 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.