Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
快速提问,伙计们,
我正在尝试配置病毒扫描程序来扫描用户上传的文件,我只是好奇它们是否必须在被扫描之前存储在服务器上,或者是否可以在保存文件之前进行扫描?我正在使用 php 在 linux 上运行 apache。
任何建议表示赞赏。
上传进入/tmp,在使用之前应该可以安全地扫描它们,move_uploaded_file以便将它们放置在更永久的地方。
/tmp
move_uploaded_file
如果你用谷歌搜索病毒流,你会发现很多病毒扫描程序似乎能够扫描流。您将需要找到一个商业的以使其有效(我怀疑是否有任何开源的,但我可能错了)。每天都会创建病毒,并且需要更新以保持最新状态。