上传文件时出现安全错误

时间:2014-01-10 17:50:21

标签: security file-upload

尝试上传文件时出现此错误: 我正在使用cpanel和move_uploaded_file函数,它在localhost上运行正常。

Security Alert

The file you are uploading was rejected by the server.
It probably contents viruses or trojans that can damage your website

Do not attempt to upload it again as your IP address may be blocked.

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:0)

配置您的服务器以接受该文件,配置取决于您的服务器设置。

听起来您正在使用名为cPanel的第三方进行托管。然后调查您的文件,如果您确定它不是恶意的。尝试联系他们。我怀疑他们会回应并提供补丁:(

答案 1 :(得分:0)

由于在linux服务器上启用了mod_security函数,因此发生此错误。因此,请联系您的服务器管理员以禁用mod_security函数...

相关问题