php - 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
解决方案
我想到了:
在发现所有网站都有相同的主机后,我深入研究了提供商设置。就我而言,有一个活动的垃圾邮件过滤器阻止了各种 POST 请求。只需关闭过滤器即可消除错误。
提供者: STRATO AG
推荐阅读
- javascript - jss 和 css 在“/”之后不起作用
- applescript - 如何让这个 AppleScript 同时接受文件和文件夹?
- after-effects - After Effects 中是否有任何睡眠/等待/延迟功能?
- javascript - 点上的 JavaScript 拆分数组
- github-actions - Github Actions 创建 .env 文件
- ssl - ClipGrab - 下载 youtube-dl 时出错:SSL 握手失败
- visual-studio - Visual Studio 键盘快捷键
- c++ - 正确编译使用 TRE 正则表达式库的 C++ 代码
- core-data - 当用户更改全局对象时重新初始化合并发布者
- mysql - Kubernetes集群中部署的应用如何实现线程安全?