StrategyShare

Moving to a CDN can overload your server and lock out Googlebot, Google warns

Google's Gary Illyes and Cherry Prommawin explain why an empty cache and anti-bot filters can knock pages out of Search, and how to avoid the problem.

By MOBAEO Newsroom··2 min read

Follow
Aerial photo of a hydroelectric dam with water flowing through it and lush green surroundings.
Photo: VISHWANATH/Pexels

Switching to a CDN (content delivery network) can, at first, ramp up Googlebot's crawling and overload a site's origin server. That warning comes from Google's Gary Illyes and Cherry Prommawin, who also explained how bot protection settings on a CDN can block the crawler by mistake and knock pages out of Search.

Their explanations were rounded up by Search Engine Journal in a story published on November 18, which also points to Google's new documentation on CDNs.

A faster server means heavier crawling

Google's crawling systems read faster server responses as a sign that the infrastructure can handle more requests, and they gradually raise the crawl rate. The catch is that a CDN's cache starts out empty. The first time a page is requested, the CDN has to fetch it from the origin server; only from the second request on is the content already stored.

"Under normal conditions, our crawlers follow one important rule. When a server responds faster, the crawlers take that to mean the infrastructure is healthy and gradually increase the crawl speed," Cherry Prommawin said. "People assume a CDN can absorb a crawl spike from day one, but the cache has to be filled with the site's files first."

Gary Illyes noted that the ramp-up takes time and does not happen in a millisecond, but he underscored the risk: "An empty cache means your origin server is still doing all the heavy lifting. Until that cache fills up, your CDN isn't acting as a shield yet."

The bot filter that shuts out Google

The second problem comes from how site owners react to the traffic spike. "They see traffic shooting up, assume they're being aggressively scraped by botnets and, naturally, they panic," Illyes said. The next step can be switching on broad security rules that also block Googlebot, as in the example the two gave of an administrator turning on a filter in Cloudflare.

Prommawin described how it works: "If the CDN detects automated requests, it intercepts them with a CAPTCHA challenge. And since our crawlers can't identify a traffic light, they fail the test." If the block drags on, Google starts dropping the pages from its index.

What Google recommends

  • Warm up the cache: programmatically request your key URLs through the CDN before letting search engines in.
  • Configure the CDN to allow known, trusted crawlers through an allowlist.
  • Rate-limit Googlebot's crawling on the CDN itself if the requests are taking down the origin server and hurting visitors.

"See if you can pre-warm the caches by programmatically fetching your top URLs through the CDN before you open the floodgates to search engines," Illyes advised.

For brand teams, the takeaway is that an infrastructure change meant to make the site faster can, if poorly planned, overload the server and make pages vanish from Google Search. Warming up the cache and reviewing bot blocking rules before the migration are the precautions Google itself points to.

Key questions

Why can migrating to a CDN overload the server?

Googlebot ramps up crawling when it sees faster responses, but the CDN's cache starts out empty, so requests still land on the origin server.

How can a CDN block Googlebot?

Broad anti-bot rules can hit the crawler with a CAPTCHA, which it can't solve. If the block goes on long enough, Google drops pages from its index.

What does Google recommend to avoid the problem?

Warm up the cache with your key URLs, allowlist trusted crawlers and temporarily rate-limit crawling on the CDN if the server becomes overloaded.

Source: Search Engine Journal.