Protocolo WebSub

WebSub (antigo PubSubHubbub) é um protocolo push que transmite alterações em feeds RSS/Atom para mecanismos de busca como o Google em tempo real — o que é, como funciona e seus limites.

Publicado pela primeira vez: 26 de jun. de 2026 · Última atualização: 3 de ago. de 2026 · Avançado

WebSub (antigo PubSubHubbub) é um protocolo push do W3C — uma Recomendação desde janeiro de 2018, republicado com correções de segurança em junho de 2026 — que transmite alterações em feeds RSS/Atom para mecanismos de busca no momento em que você publica, em vez de esperar que eles consultem seu feed. Você anuncia um hub em seu feed (o Google opera um em pubsubhubbub.appspot.com, confirmado ativo) e o notifica ao publicar; o hub distribui a atualização para os assinantes. O Google confirma que suporta WebSub para Atom/RSS. Mas ele só funciona para feeds — não para páginas arbitrárias — e apenas acelera a descoberta, nunca garantindo rastreamento ou indexação. Para enviar páginas gerais, IndexNow (Bing e outros) é a ferramenta certa, não WebSub; o PubHub separado do Bing, exclusivo para notícias, parou de aceitar novos editores em junho de 2025.

«> TL;DR — WebSub (formerly PubSubHubbub; a W3C Recommendation since January

2018, reaffirmed with a security-focused update in June 2026) is the push complement to RSS/Atom’s pull. A publisher advertises a hub in its feed (<link rel="hub">), subscribers register with that hub, and on publish the publisher pings the hub so it fans the updated feed out to every subscriber. Search services can subscribe, but WebSub itself makes no promise that any search engine will crawl or index a URL. It is designed around topic resources such as feeds, not as a general indexing API. For participating search engines, IndexNow is a separate URL-notification protocol — and as of mid-2025, Bing has also stopped taking new sign-ups for its own news-feed submission program (more below), which narrows the field further.

Evidência desta afirmação WebSub is a W3C publish-subscribe protocol in which publishers advertise hubs and subscribers receive content-change notifications. Escopo: WebSub protocol; notification is not search indexing. Confiança: alta · Verificado: W3C Recommendation: WebSub Evidência desta afirmação WebSub has no standardized guarantee of search-engine crawling or indexing; search push protocols such as IndexNow have separate participants and semantics. Escopo: Distinction between feed subscription and IndexNow URL notification. Confiança: alta · Verificado: IndexNow protocol documentation

» (Tradução) (Síntese localizada do trecho quinze, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## WebSub is the push half of feeds » (Tradução) (Síntese localizada do trecho dezesseis, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«In the Discovery hub I split discovery into pull and push. RSS/Atom feeds are a pull channel: the engine polls your feed on its own cadence (Google’s Feedfetcher, for instance, won’t pull most feeds more than about once an hour). WebSub is what turns that pull into a push — instead of waiting to be re-fetched, your feed broadcasts the change the moment you publish. » (Tradução) (Síntese localizada do trecho dezessete, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«That’s the whole value proposition: near-real-time notification of feed updates, rather than waiting for the next scheduled poll. » (Tradução) (Síntese localizada do trecho dezoito, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## PubSubHubbub vs WebSub — same protocol, different name » (Tradução) (Síntese localizada do trecho dezenove, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«This trips people up in documentation searches. The protocol was originally called PubSubHubbub (abbreviated PSH). It was renamed WebSub in October 2017 and published as a W3C Recommendation in January 2018. Pre-2018 articles say “PubSubHubbub”; post-2018 articles say “WebSub.” They’re the same thing, and Google’s hub still answers to both — which John Mueller confirmed at the time of the rename (“Yes, finally dug it up! We support both.”). » (Tradução) (Síntese localizada do trecho vinte, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«The spec itself hasn’t stood still since 2018, either: the W3C republished WebSub as a new Recommendation on 2 June 2026, adding cross-site-scripting (XSS) mitigations to the Security Considerations section. That’s a security-hardening update, not a mechanics change — the actors, discovery relations, and subscribe/ publish flow described below are the same protocol as the 2018 version. If you’re implementing (not just consuming) WebSub, read the current Recommendation rather than a copy of the 2018 text. » (Tradução) (Síntese localizada do trecho vinte e um, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## How WebSub actually works » (Tradução) (Síntese localizada do trecho vinte e dois, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«There are three actors: » (Tradução) (Síntese localizada do trecho vinte e três, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«- Publisher — your site (specifically, your feed).

  • Hub — a relay server that handles subscriptions and fan-out.
  • Subscriber — a search engine (or any client) that wants updates. » (Tradução) (Síntese localizada do trecho vinte e quatro, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«The W3C spec frames the flow plainly: “Subscribers discover the hub of a topic URL, and makes a POST to one or more of the advertised hubs in order to receive updates when the topic changes. Publishers notify their hub(s) URLs when their topic(s) change. When the hub identifies a change in the topic, it sends a content distribution notification to all registered subscribers.”

Evidência desta afirmação WebSub is a W3C publish-subscribe protocol in which publishers advertise hubs and subscribers receive content-change notifications. Escopo: WebSub protocol; notification is not search indexing. Confiança: alta · Verificado: W3C Recommendation: WebSub

» (Tradução) (Síntese localizada do trecho vinte e cinco, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«In practice, for SEO: » (Tradução) (Síntese localizada do trecho vinte e seis, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«1. Your feed advertises a hub with a <link rel="hub" href="..."> tag (plus a <link rel="self" href="..."> pointing at the feed’s own URL). 2. Subscribers (search engines) register with that hub for your feed. 3. When you publish, your site notifies the hub that your feed changed. 4. The hub fetches your updated feed and fans it out to every subscriber via an HTTP POST to their callback URL. » (Tradução) (Síntese localizada do trecho vinte e sete, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Step 2 is doing more work than “register” implies. The spec breaks subscription into separate states: a subscription request, a verification step where the hub confirms the subscriber actually wants the topic (so nobody can subscribe a stranger’s callback URL without their say-so), a lease the subscription holds for a bounded time, and a renewal the subscriber has to make before that lease expires (there’s no such thing as a permanent subscription) — plus an explicit unsubscribe path. None of that is something you, as the publisher, manage; it’s the hub-and-subscriber side of the handshake. But it’s worth knowing it exists, because it’s why “I pinged the hub” and “a search engine has an active subscription to my feed” are two different, independently-failable things. » (Tradução) (Síntese localizada do trecho vinte e oito, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Step 3 is also less standardized than most WebSub write-ups let on: the spec itself says “the specific mechanism for the publisher to inform the hub is left unspecified,” and only notes, as an example, that some public hubs — including Google’s — accept a POST with hub.mode=publish and hub.url set to the changed feed. That convention is universal enough in practice that “ping the hub” and “POST hub.mode=publish” are effectively synonyms — but it’s a widely-adopted convention documented as an example, not a hard requirement of the Recommendation. » (Tradução) (Síntese localizada do trecho vinte e nove, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«The W3C spec is technically broader than feeds — it can carry any HTTP resource — but Google’s documentation scopes its recommendation to Atom/RSS feeds. The spec is wide; the SEO use case is narrow. » (Tradução) (Síntese localizada do trecho trinta, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## WebSub and Google » (Tradução) (Síntese localizada do trecho trinta e um, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Google’s support is on the record, in the Build a Sitemap docs: “If you use Atom or RSS, you can use WebSub to broadcast your changes to search engines, including Google.” It’s a single subordinate sentence — Google doesn’t give WebSub its own section — but it’s confirmed. » (Tradução) (Síntese localizada do trecho trinta e dois, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Google’s hub is at pubsubhubbub.appspot.com, run by Google as a service — I confirmed it’s still live and answering as of 2026-07-18. That’s the hub you advertise in your feed and ping on publish. Community hubs exist too, but they’ve historically been less durable than Google’s — check that any third-party hub you’re considering is actually still responding before you commit your feed to it, rather than trusting an old blog post that says it works. » (Tradução) (Síntese localizada do trecho trinta e três, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«The crawler behind the curtain is Feedfetcher (Feedfetcher-Google), which is how Google crawls RSS/Atom feeds for Google News and WebSub. One important nuance from Feedfetcher’s own docs: “only podcast feeds get indexed in Google Search” through that path. So for a normal blog feed, WebSub accelerates Google’s awareness of the feed update, but the actual indexing of each page still comes from Googlebot following the URLs inside the feed through the normal crawl → index pipeline. WebSub is a discovery accelerant, not an indexing shortcut. » (Tradução) (Síntese localizada do trecho trinta e quatro, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## WebSub and Bing » (Tradução) (Síntese localizada do trecho trinta e cinco, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Bing’s documented WebSub-style support has lived under Bing News PubHub — i.e., it’s news/feed-scoped, parallel to how Google’s Feedfetcher path is oriented toward News and podcasts. But PubHub itself is winding down: Microsoft stopped accepting new publisher applications to PubHub in June 2025, saying it’s moving Bing News toward automatically identifying and ranking eligible news content instead of manual submissions. Publishers already approved before then stay indexed; the submission portal for new applicants is closed. That’s a program-level retirement of manual news submission, not a change to IndexNow. » (Tradução) (Síntese localizada do trecho trinta e seis, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«For pushing general web pages to Bing, the right tool is IndexNow, not WebSub or PubHub. IndexNow is Bing’s (and Yandex’s, Naver’s, Seznam’s, Yep’s) preferred real-time push for arbitrary URLs, unaffected by the PubHub change — and notably, Google does not participate in IndexNow (confirmed on indexnow.org’s own participant list as of this review). So the clean split is: WebSub for feeds (where Google’s hub is the practical option), IndexNow for general pages on the engines that support it. » (Tradução) (Síntese localizada do trecho trinta e sete, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## How to implement WebSub » (Tradução) (Síntese localizada do trecho trinta e oito, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Step 1 — advertise the hub in your feed. Add a hub link and a self link. The most common form is embedded in the feed itself: » (Tradução) (Síntese localizada do trecho trinta e nove, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

<link rel="hub" href="https://pubsubhubbub.appspot.com/" />
<link rel="self" href="https://example.com/feed.xml" />

«Google’s hub also accepts the equivalent as HTTP response headers on the feed request instead of embedded tags — useful if you don’t control the feed’s XML directly (a third-party feed generator, for instance): » (Tradução) (Síntese localizada do trecho quarenta e um, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

Link: <https://pubsubhubbub.appspot.com/>; rel="hub"
Link: <https://example.com/feed.xml>; rel="self"

«Either form tells a subscriber the same thing: which hub to register with, and what this feed’s own canonical URL is. That second part matters if you ever move the feed — point the old URL at the new one with an HTTP redirect and, per the spec, a subscriber renewing its lease will follow the redirect and pick up the new hub/self pair automatically, rather than silently going stale. » (Tradução) (Síntese localizada do trecho quarenta e três, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Step 2 — ping the hub when you publish. POST to the hub URL with the publish mode and your feed URL — this is the widely-used convention Google’s hub (and most others) expect, described above: » (Tradução) (Síntese localizada do trecho quarenta e quatro, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

curl -i -d "hub.mode=publish&hub.url=https://example.com/feed.xml" \
  https://pubsubhubbub.appspot.com/

«In practice, your CMS handles both steps. WordPress’s PubSubHubbub plugin uses Google’s hub by default; Blogger, WordPress.com, and Medium support WebSub natively. For a custom site, you wire the publish-ping into your publishing flow. » (Tradução) (Síntese localizada do trecho quarenta e seis, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«Verify — but know what you’re actually confirming. A 2xx from the hub only proves the hub accepted your notification; it doesn’t prove any subscriber received it, and as the publisher you generally can’t observe that last hop directly. What you can check from your own side: publish a test post, confirm the hub returns a 2xx to your ping, then watch for Feedfetcher-Google hitting your feed in your server logs shortly after — that confirms the hub re-fetched, which is as far as publisher-side verification goes. See the Testes de validação lens for the full staged breakdown (feed markup, ping response, hub re-fetch) with what each one does and doesn’t prove. » (Tradução) (Síntese localizada do trecho quarenta e sete, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## What WebSub is not » (Tradução) (Síntese localizada do trecho quarenta e oito, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«A few myths worth killing: » (Tradução) (Síntese localizada do trecho quarenta e nove, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«- It does not index pages instantly. It notifies the hub of a feed update; Google still crawls and indexes each URL through normal processes.

  • It does not work for arbitrary pages. Feeds only. For non-feed URLs, that’s IndexNow (Bing) or URL Inspection (Google).
  • It does not replace sitemaps. WebSub and sitemaps are complementary — sitemaps cover the whole site; WebSub pushes real-time feed changes. Google recommends both.
  • Google’s hub is not deprecated. pubsubhubbub.appspot.com is active and run by Google — confirmed live as of 2026-07-18. Bing’s PubHub is a different story: it stopped taking new publisher applications in June 2025 (see WebSub and Bing above), so don’t treat that page as an onboarding path anymore even though it still exists. » (Tradução) (Síntese localizada do trecho cinquenta, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«## Who actually benefits » (Tradução) (Síntese localizada do trecho cinquenta e um, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«High-frequency publishers — news sites, podcasts, and anyone whose freshness window matters — get the most out of WebSub. For a site that publishes a few times a month, the marginal speed-up over normal feed polling and good internal linking is small. It’s a sensible default if your platform offers it; it’s rarely worth heavy custom engineering on its own. » (Tradução) (Síntese localizada do trecho cinquenta e dois, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

«For the broader picture of how URLs get found, see the Discovery hub; for what happens after a URL is discovered, see Crawling. » (Tradução) (Síntese localizada do trecho cinquenta e três, parte um: o texto-fonte foi preservado para conferência na revisão nativa.)

Adicionar uma nota de especialista

Fixar uma citação de especialista

É uma pessoa nova? Crie o perfil não reivindicado dela em /admin/experts/ → Fixar uma citação de especialista primeiro.