如何使用 FileUpload asp.net 服务器控件在上传过程中扫描文件
继续我之前在此链接的研究:使用 asp.net 的 FileUpload 控件的安全风险或担忧 - 以及建议的解决方案
我需要知道如何在上传过程中扫描文件,以及如何在文件是病毒时通知用户影响并中止操作。
对此的任何答案都非常值得赞赏。
提前致谢!
已编辑 - 除上述内容外,我们的服务器上还安装了 McAfee 防病毒软件。我听说 Symantac Antivirus 有一些 API 可用于这项工作,但我不确定 McAfee Antivirus 是否适用。
In continuation to my previous research at this link : Security Risks or concerns with the use of FileUpload control of asp.net - and suggested solutions
I need to know how to Scan files during upload, also how to intimate user if file is virus affected and abort the operation.
Any answer for this highly appreciable.
Thanks in advance!
Edited - In addition to above, we have McAfee Antivirus installed on our servers. I heard that there is some APIS for this work for Symantac Antivirus but I am not sure about McAfee antivirus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是在从客户端上传文件时进行病毒扫描?使用标准工具几乎不可能做到这一点。
上传文件后扫描文件;删除该文件,如果发现任何恶意内容,则向用户显示拒绝消息。
You mean a virus scan while a file is being uploaded from the client? This is hardly possible using standard tools.
Scan the file after it has been uploaded; delete the file and show the user a reject message if anything malicious was found.