PubSubHubbub (often abbreviated PuSH, and now officially called WebSub) is an open protocol that transforms the traditional pull-based RSS model into a push-based system. Instead of waiting for search engines to periodically check your feed, you can instantly notify them when new content is published. This can dramatically reduce the time between publication and indexation.
What Is PubSubHubbub/WebSub?
PubSubHubbub was created by Google engineer Brett Slatkin in 2009 to solve a fundamental problem with RSS: the polling model. Traditional RSS requires subscribers to periodically check feeds for updates, creating delays and unnecessary server load.
The protocol was renamed WebSub when it became a W3C Recommendation in 2018, though PubSubHubbub remains widely recognized in the SEO community.
Key concepts:
- Publisher: Your website that creates content and feeds
- Subscriber: Services that want to receive updates (search engines, feed readers)
- Hub: An intermediary server that receives publication notifications and distributes them to subscribers
"WebSub provides a common mechanism for communication between publishers and subscribers. It is entirely decentralized and free, no proprietary central hub is required."
W3C WebSub Recommendation
How the Protocol Works
The WebSub protocol follows a publish-subscribe pattern:
1. Hub Declaration
Your RSS or Atom feed includes a link to a WebSub hub. This tells subscribers where to go to receive real-time updates:
<link rel="hub" href="https://pubsubhubbub.appspot.com" />
<link rel="self" href="https://yoursite.com/feed/" />
2. Subscription
Subscribers (like Google) register with the hub, indicating they want to receive updates for your feed. The hub verifies the subscription by sending a challenge to the subscriber.
3. Publication Notification
When you publish new content, your site "pings" the hub, notifying it that the feed has been updated.
4. Content Distribution
The hub fetches your updated feed and immediately pushes the new content to all subscribers. This happens in seconds, not hours or days.
SEO Benefits of WebSub
Implementing WebSub can significantly improve your SEO performance:
Faster Content Discovery
Google subscribes to WebSub hubs and receives instant notification of new content. This can reduce discovery time from days to minutes for sites with established WebSub implementation.
Improved Crawl Efficiency
Instead of Google crawling your feed repeatedly to check for updates, WebSub pushes updates directly. This reduces unnecessary crawl requests on your server.
Better for Time-Sensitive Content
News sites, blogs covering trending topics, and e-commerce sites with flash sales benefit enormously from instant notification.
Enhanced Feed Reliability
The WebSub model ensures subscribers always have the latest content without gaps caused by missed polling cycles.
WebSub Advantages
- Real-time content distribution
- Reduced server polling load
- Open standard with wide support
- Free to implement
Considerations
- Requires initial setup
- Depends on third-party hubs
- Not all subscribers support it
- Additional ping step after publishing
Implementing WebSub on Your Site
To implement WebSub, you need to complete two tasks: declare a hub in your feed and ping the hub when you publish.
Step 1: Choose a Hub
You can use a public hub or run your own. Popular public hubs include:
- Google's Hub: https://pubsubhubbub.appspot.com (most popular, reliable)
- Superfeedr: https://push.superfeedr.com (offers additional features)
- WebSub.rocks: https://websub.rocks/hub (testing and production)
Step 2: Add Hub Link to Your Feed
Add the hub and self-reference links to your RSS or Atom feed:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Your Site</title>
<link>https://yoursite.com</link>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
<atom:link rel="self" href="https://yoursite.com/feed/" />
...
</channel>
</rss>
Step 3: Ping the Hub on Publish
After publishing new content, send a POST request to the hub:
POST https://pubsubhubbub.appspot.com/
Content-Type: application/x-www-form-urlencoded
hub.mode=publish&hub.url=https://yoursite.com/feed/
Or using curl:
curl -d "hub.mode=publish&hub.url=https://yoursite.com/feed/" \
https://pubsubhubbub.appspot.com/
Simplify Your Indexation Workflow
RSS AutoIndex combines WebSub notifications with direct indexation submission for maximum speed. Set it once and forget it.
Start Free TrialWordPress WebSub Setup
Setting up WebSub on WordPress is simple with the right plugin:
Using the WebSub Plugin
- Install the "WebSub/PubSubHubbub" plugin from the WordPress repository
- Activate the plugin
- Navigate to Settings > WebSub
- Verify the default hub URLs (Google's and Superfeedr's hubs are pre-configured)
- Save settings
The plugin automatically:
- Adds the hub and self links to your feeds
- Pings configured hubs whenever you publish or update a post
- Handles both RSS 2.0 and Atom feeds
Verifying WordPress Setup
After installing the plugin, verify the implementation:
- View your feed source at
yoursite.com/feed/ - Look for
<atom:link rel="hub">in the XML - Publish a test post and check the ping logs in the plugin settings
Advanced WordPress Configuration
For more control, you can add custom hubs or modify ping behavior using hooks:
// Add additional hub
add_filter('pubsubhubbub_hubs', function($hubs) {
$hubs[] = 'https://custom-hub.example.com/';
return $hubs;
});
// Customize ping timing
add_action('publish_post', 'custom_websub_ping', 10, 2);
function custom_websub_ping($post_id, $post) {
// Custom ping logic here
}
Testing Your Implementation
Verify that your WebSub implementation is working correctly:
Feed Validation
Use the W3C Feed Validator to check your feed structure. Look for the hub and self links in the validation results.
WebSub.rocks Testing
Visit WebSub.rocks to test your publisher implementation. It provides a step-by-step verification process.
Google Hub Status
After pinging Google's hub, you can verify the publication was received by checking the hub's interface or monitoring your server logs for hub fetch requests.
Monitor Feed Fetches
After implementing WebSub, monitor your server logs. You should see the hub fetching your feed within seconds of a ping, followed by any subscribed services.
Combined Indexation Strategy
WebSub is most effective when combined with other indexation strategies:
WebSub + Sitemap Submission
Use WebSub for immediate notification of new content, while maintaining an updated XML sitemap for comprehensive site coverage. Submit both to Google Search Console.
WebSub + Indexing API
For critical content, combine WebSub notifications with direct Google Indexing API submissions. The API provides guaranteed processing, while WebSub provides broad distribution.
WebSub + RSS AutoIndex
Services like RSS AutoIndex can monitor your WebSub-enabled feed and automatically submit new URLs through multiple channels, maximizing your chances of fast indexation.
Layered Approach
- Immediate: WebSub ping to notify hubs
- Automated: RSS monitoring services submit to search engines
- Backup: Traditional sitemap crawling catches anything missed
Common Issues and Solutions
Hub Not Receiving Pings
Ensure your server can make outbound POST requests. Some hosting environments block outgoing HTTP requests. Check firewall settings and test with curl.
Feed Not Being Fetched
Verify that your feed is publicly accessible and returns a valid RSS or Atom format. The hub must be able to fetch your feed to distribute it.
Subscribers Not Receiving Updates
If Google or other subscribers aren't receiving updates, check that your feed includes the correct self-referencing URL. Mismatches between the declared self URL and actual URL can prevent subscription.
To automate this process, discover our automatic indexing tool that submits your new pages to Google as soon as they're published.
Conclusion
WebSub (PubSubHubbub) is a powerful protocol for achieving near-instant content distribution. While it requires some initial setup, the benefits for SEO and content indexation are significant, especially for sites that publish time-sensitive content.
Key takeaways:
- WebSub transforms RSS from pull to push model
- Google subscribes to WebSub hubs for faster discovery
- WordPress users can implement with a simple plugin
- Combine WebSub with other strategies for best results
- Test your implementation to ensure it's working
By implementing WebSub alongside other indexation techniques, you create a robust system that ensures your content reaches search engines as quickly as possible.
Ready for Instant Indexation?
Let RSS AutoIndex handle your WebSub-enabled feed and automate your entire indexation workflow.
Create Your Free Account