首页 > 解决方案 > WordPress 后端的更改导致 PHP 文件的下载(一些 POST 请求被阻止)

问题描述

当我尝试在 WordPress 中创建用户时,开始下载文件“user-new.php”。但是没有创建用户。如果我想更改设置,同样的问题。然后开始下载“options.php”

这是下载的options.php的内容:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

来自提供者的错误日志:

30.10.2018 16:45:01 example.org [client 2a01:c23:9000::] rdbm_handle_postscan_block: hostname=example.org, client_ip='2a01:c23:9027:b800:34b5:9469:33f9:1ef4', would captcha uri: '/wp-admin/options.php'
30.10.2018 16:53:58 example.org [client 2a01:c23:9000::] rdbm_handle_postscan_block: hostname=example.org, client_ip='2a01:c23:9027:b800:34b5:9469:33f9:1ef4', would captcha uri: '/wp-admin/options.php'
30.10.2018 17:01:23 example.org [client 2a01:c23:9000::] rdbm_handle_postscan_block: hostname=example.org, client_ip='2a01:c23:9027:b800:34b5:9469:33f9:1ef4', would captcha uri: '/wp-admin/options.php'
30.10.2018 17:01:52 example.org [client 2a01:c23:9000::] rdbm_handle_postscan_block: hostname=example.org, client_ip='2a01:c23:9027:b800:34b5:9469:33f9:1ef4', would captcha uri: '/wp-admin/user-new.php'
30.10.2018 17:06:34 example.org [client 2a01:c23:9000::] rdbm_handle_postscan_block: hostname=example.org, client_ip='2a01:c23:9027:b800:34b5:9469:33f9:1ef4', would captcha uri: '/wp-admin/options.php'

该问题仅影响管理选项。仍然可以创建、编辑帖子和页面等,并且更新主题和插件也可以正常工作。

我被困住了。我google了很长时间,但不幸的是我找不到线程或其他人有同样的问题。这里有人可以帮助我吗?我希望我已经足够清楚地表达了自己。

编辑:.htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

标签: phpwordpress

解决方案


我想到了:

在发现所有网站都有相同的主机后,我深入研究了提供商设置。就我而言,有一个活动的垃圾邮件过滤器阻止了各种 POST 请求。只需关闭过滤器即可消除错误。

提供者: STRATO AG

STRATO 服务器端安全设置


推荐阅读