Forum Moderators: coopster

Message Too Old, No Replies

trigger a virus scan with php

         

moroose

9:16 am on Jun 24, 2007 (gmt 0)

10+ Year Member



Does anyone know and can share some insight on:
How to detect a virus and scan a file while uploading?
or experience in command line interface to trigger a virus scan?

henry0

11:41 am on Jun 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The real question is: How will you interface with your AV?

The rest is easy
first perform the usual security checks, size allowed etc..
Allow uploading to a temp
setup a cron that every (for example: hour)
will trigger the AV check
if ok upload to final destination, if not del and ban sender

if any one knows how to trigger an AV selective search then you will be all set :)

moroose

10:14 pm on Jun 24, 2007 (gmt 0)

10+ Year Member



Thank you Henry for your tips.the start that is difficult for me now.I found some articles and codes,but are maily for asp or php,but for a server other than Linux.Also,am on shared hosting,and am not sure one can issue such AV commands to one's host server.
So far usual size/type checks and upload to a temp are set,the rest is the real work.
hope someone has done it before to guide me thru.

henry0

11:46 am on Jun 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since you are in a shared server environment
you should ask your ISP.
Any kind of input should be filtered at their server level.