使用php扫描用户机器上的病毒上传文件 [英] scan uploaded file for virus in user's machine using php

查看:230
本文介绍了使用php扫描用户机器上的病毒上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用PHP创建了一个网站,在这里我给了用户特权上传任何格式的文件。现在我想扫描用户上传的文件,以查看是否有病毒或恶意软件。另外,我想扫描它,然后将其放置在服务器中。



是否有任何在线网站可用于扫描这些文件?或者给我任何其他最好的方式来实现这一点。

我在Windows中使用Xampp(phpmyadmin)。

任何建议?

解决方案

有一个有用的资源可以免费使用: virustototal.com
他们的API也包含在您的PHP脚本中。



另外一种选择是使用ClamAV,但我对此并不确定。


Is there any way to scan the file uploaded by user in their machine using PHP?

I am creating a website using PHP, where I give users the privilege to upload files of any format. Now I want to scan the files uploaded by the users for any virus or malware. Also I want to scan it before placing it in the server.

Is there any Online sites available to scan those files? Or give me any other best way to achieve this.

I am using Xampp (phpmyadmin) in Windows.

Any Suggestion?

解决方案

There is a useful resource you can use for free: virustototal.com They have API to include in your PHP scripts as well.

The other option is to use ClamAV, but I'm not perfectly sure about this.

这篇关于使用php扫描用户机器上的病毒上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆