Pingback

About

pingback is a feature that permits to notify back automatically a website owner when an article is talking about another article.

Implementation

Article Reference A advertises the pingback endpoint

In the original article html document, the website owner advertise the pingback endpoint in a link element with the rel attribute set to pingback.

<link rel="pingback" href="https://websiteA.com/xmlrpc">

The path is generally:

  • xmlrpc
  • or xmlrpc.php for wordpress

And the endpoint implements xmlrpc (ie soap)

Article Referend B ping the pingback endpoint at publication

When a external article B references the article A, during the publication, the website B would pingback the website A.

  • The pingback message
<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
 <param>
  <value>
   <string>https://websiteB.com/path/to/article/b</string>
  </value>
 </param>
 <param>
  <value>
   <string>https://websiteA.com/path/to/article/a</string>
  </value>
 </param>
</params>
</methodCall>

with curl:

curl -X POST -d @pingback.xml http://websiteA.com/xmlrpc.php





Discover More
HTML - The link element (inter-document relationships)

The link represents metadata that expresses inter-document relationships. hyperlink The link element can be used only within the head element. where: media is a list of media query separated...



Share this page:
Follow us:
Task Runner