在 whm/cpanel 上禁用安全规则

Disable security rule on whm/cpanel

当我尝试通过 wordpress 上传文件时,我得到

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.

我已经研究过,我知道是服务器问题。只是我无法联系主机,因为主机是自我管理的,所以我怎样才能让这个错误消失,它发生在服务器上的所有站点上。我可以访问 WHM 和 Cpanel。 我想提一下,在我的本地主机上一切正常,文件没有被感染,它是一个简单的图像,并测试了几张图像。我明白我需要将某处列入白名单,但并不具体。

找到答案了。这是因为插件 Pyxsoft Anti Malware & Security。需要登录 WHM => 插件 => Pyxsoft 反恶意软件 => HTTP 检查器选项卡 => 启用 http 上传检查器 - 设置为否。

此问题的简单解决方案是在您的 Cpanel 上禁用 ModSecurity。

  1. 登录您的 Cpanel
  2. 转到安全类别并单击 ModSecurity
  3. Select 您正在使用的域并将其关闭。
  4. 刷新页面

然后,你就可以开始了,你将能够上传你网站上的任何文件。