.htaccess下加入
# protect xmlrpc <Files xmlrpc.php> Order Deny,Allow Deny from all </Files>
或模板文件functions.php添加
add_filter('xmlrpc_enabled','__return_false');
location =/xmlrpc.php{
deny all;
}
Control XML-RPC publishing
访问域名/xmlrpc.php由原来的
XML-RPC server accepts POST requests only.
变成403错误
Forbidden
You don’t have permission to access /xmlrpc.php on this server.
kangle 服务器提示
Something error:
403 Forbidden
denied by request access control
ngnix提示:
403 Forbidden
You don’t have permission to access the URL on this server. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
URL: http://www.xxx.com/xmlrpc.php
Server: wanlifu.wang
Date: 2019/08/02 23:09:54