beboo002 Posted July 30, 2008 Share Posted July 30, 2008 Hello freaks, How can I scan file when user upload files. Is it possible! I have no idea to do this. Please suggest me any path or clue or any web link or tutorial for scan file while uploaded in PHP. Currently I am using php4.4.7 Thanks & Regard Beboo Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/ Share on other sites More sharing options...
monkeypaw201 Posted July 30, 2008 Share Posted July 30, 2008 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 Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603368 Share on other sites More sharing options...
beboo002 Posted July 30, 2008 Author Share Posted July 30, 2008 Thanks for reply I have all the check applied you have mention except this How can I apply this:- 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 Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603371 Share on other sites More sharing options...
beboo002 Posted July 30, 2008 Author Share Posted July 30, 2008 any one Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603447 Share on other sites More sharing options...
trq Posted July 30, 2008 Share Posted July 30, 2008 What AV software are you using? Id start by looking at there manual, this really has little to do with php at all. Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603451 Share on other sites More sharing options...
unkwntech Posted July 30, 2008 Share Posted July 30, 2008 What you'll probably want to do is find a way to start a scan from the command line/ shell and use php's exec()/passthru() functions to start the scan. Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603507 Share on other sites More sharing options...
rameshfaj Posted July 30, 2008 Share Posted July 30, 2008 What ever AV the user might be using,the system should be able to scan it as we find in several email service providers while attaching the files.I think they have their own AV which is available while getting the space(from the domain providers). Link to comment https://forums.phpfreaks.com/topic/117297-virus-scan-the-file-while-uploading/#findComment-603523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.