admin管理员组文章数量:1303670
According to old post: How to secure WordPress XMLRPC?, every API require authentication.
So, what is the point of adding X-Pingback
in every public request?
curl -I
..
X-Pingback: .php
Content-Type: text/html; charset=UTF-8
..
According to old post: How to secure WordPress XMLRPC?, every API require authentication.
So, what is the point of adding X-Pingback
in every public request?
curl -I http://ma.tt
..
X-Pingback: http://ma.tt/blog/xmlrpc.php
Content-Type: text/html; charset=UTF-8
..
Share
Improve this question
edited Apr 13, 2017 at 12:37
CommunityBot
1
asked Dec 14, 2012 at 7:35
YogaYoga
9192 gold badges20 silver badges39 bronze badges
1 Answer
Reset to default 4I think that when talking about XMLRPC in the context of wordpress you usually mean to talk about authoring tools utilizing the XMLRPC protocol, and not about the protocol in general.
In case of pingbacks and trackbacks the XMLRPC protocol is utelized to send content (comment) to your site by some other entity which is probably doing it in some automattic way. That entity needs to know the endpoint to which to send it request based on the address of the page where the comment should be published, there for you need to be able to retrieve the address of the endpoint from the URL of the page and this is done by the page adding the address as an HTTP header (maybe it can also be done by adding a meta tag to the HTML).
TL;DR; the HTTP header is related to supporting pingbacks which works in different way then XMLRPC based publishing
Unfortunately even when pingback and trackbacks are disabled the HTTP header is being sent. If you want to disable it, add the following code to your theme functions.php (taken from here)
function remove_x_pingback($headers) {
unset($headers['X-Pingback']);
return $headers;
}
add_filter('wp_headers', 'remove_x_pingback');
本文标签: pluginsXPingback and XMLRPC
版权声明:本文标题:plugins - X-Pingback and XMLRPC 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741698079a2393125.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论