Blog Ping List and XML-RPC Generator

If you're using WordPress or something similar for your blog, it's easy to add in blog pinging services and forget about the whole process. But, what if you need to ping those services for a blog constructed outside of WordPress? This tutorial will answer that question for you.

What is Blog Pinging?

Blog pinging is the process by which your server immediately lets content aggregators and search engines know that you have new content that should be indexed. Almost always, this is done with an XML-RPC-based request sent from your server.

How do I construct my XML-RPC Request?

The format is pretty simple. Here's an example:

<?xml version="1.0"?>
      <value>Example Blog</value>

Want it even easier? Okay… Tell us your blog details and we'll construct the XML-RPC request for you:

Blog Name
Site URL
New Post URL

Now, who should I ping it to?

If you search around the internet for a blog ping list, you'll find lots, but most of them are composed primarily of services that are no longer active. Because of the large amount of spam pings generated and sent, blog pinging seems to be dying. However, the services listed as Active below are still out there and working. You should send your blog pings to them:

Service NameEndpoint (Ping URL)Status*Comments
Google Blog Search information can be found in this Google Help Article.
Technorati has a message on their site saying that they no longer accept pings as of October 2009.
Ping-o-Matic! you try to ping this service from outside of WordPress, you simply get a response of "You are too awesome for Ping-o-matic."
Yahoo! is a message on Yahoo's Developer Site saying that pinging will has been discontinued as of December 2010.
Feedster is no longer around. You can find more details in the article Feedster Quietly Dies.
Blo.gs service is returning a 403 Forbidden error, even if you access via the form on their site. 

* This list was last tested on March 13th, 2014. If you find that any of the statuses are not up to date, please comment below and let us know.

How do I submit my ping?

If you're running PHP, you can use the following:

$context = stream_context_create(array('http' => array(
    'method' => "POST",
    'header' => "Content-Type: text/xml\r\n",
    'content' => $xml
$file = @file_get_contents($post_to, false, $context);
if ($file === false) { echo '<p>Couldn\'t connect!</p>'; }
elseif ($file) {
    echo '<p>The following response was returned:</p>';
    echo '<pre>'.htmlspecialchars($file).'</pre>';
} else {
    echo '<p>Empty response!</p>';

(Define $xml with the XML-RPC request that you generated a couple paragraphs further up the page.)

That's it. Happy pinging! If you have questions or comments, please leave them below. Also, new blog pinging services are always appreciated! Don't keep them to yourself.



This post was first published on January 29th, 2011 and last updated on March 13th, 2014 by Robert James Reese in the following categories: Blogging, PHP, and XML Before using any of the code or other content in this post, you must read and agree to our terms of use.