将文件上传到运行实时防病毒扫描的服务器

发布于 2024-09-03 01:45:55 字数 243 浏览 2 评论 0原文

我需要允许用户将文件上传到运行防病毒程序并打开实时扫描的服务器上。

有什么好的设计可以确保受感染的文件不会上传到服务器。

问题 -

  1. 是否会将大文件复制到磁盘上,然后立即扫描,或者是否会在复制时对其进行扫描,并且如果受感染,则不允许出现在磁盘上

  2. 我应该围绕此构建一个单独的基础设施来专门对复制的文件进行扫描吗?如果通过实时扫描删除文件,这可能是一个问题

I need to allow users to upload files onto a server that has an antivirus program running with real-time scanning switched on.

What would be a good design to ensure that infected files are not uploaded to the server.

Questions -

  1. would large files be copied onto disk and then immediately scanned, or would they be scanned as they are copied and not allowed to appear on disk if infected

  2. Should i build a seperate infrastructure around this to specifically ionvoke a scan on the copied file ? this might be an issue if the file is deleted through the real-time scan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

但可醉心 2024-09-10 01:45:55
  1. 这取决于您的防病毒系统和操作系统。这应该很容易通过测试确定。在 Windows 上,似乎大多数实时防病毒系统都会在文件写入磁盘时以及在 Windows 资源管理器执行、移动或复制文件之前扫描文件。如果 Windows 资源管理器继续尝试访问该文件,则会出现错误。
  2. 如果上述内容不能满足您的需求,那么您可能需要手动调用扫描。如果您的防病毒软件自动删除或隔离该文件,您只需检查扫描后该文件是否仍在其原始位置即可。理想情况下,您的防病毒软件将允许您扫描文件并返回 true 或 false 是否被感染,这将允许您手动删除文件。
  1. This depends on your antivirus system and OS. This should be easy to determine through testing. On Windows, it seems that most real time antivirus systems scan the file as it is written to disk, and well before the file can be executed, moved, or copied by Windows Explorer. Windows Explorer gets an error if it continues to try to access the file.
  2. If the above doesn't meet your needs, then yes, you'll probably want to invoke the scan manually. If your antivirus automatically deletes or quarantines the file, you'd simply check to see if the file were still in its original location after the scan. Ideally, your antivirus would allow you to scan the file and return true or false as to whether it were infected, which would allow you to delete the file manually.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文