Find out why Google indexed a page it couldn't read

Page indexed without content means the URL is in Google's index, but Google couldn't read any content on it. Google gives two possible reasons: the page may be cloaked to Google, serving Googlebot something different from what visitors see, or it may be in a format Google can't index. A robots.txt block doesn't cause it, and URL Inspection's live test doesn't check for it, so start with what Google recorded from its last crawl.

Why Google couldn't read the page

  • Googlebot gets different content

    Cloaking means showing search engines something different from what visitors get. Done to manipulate rankings, it breaks Google's spam policies, and hackers sometimes use it so the site owner doesn't notice the hack.

  • Something on your side turns Googlebot away

    Firewalls and bot protection can treat Googlebot as unwanted traffic, because it makes more requests than a person does, and answer it with something other than your page.

  • The file is in a format Google can't index

    Google decides a file's type from its Content-Type header and only sometimes falls back on the extension or another parser. A page sent with the wrong type, or a format outside Google's supported list, can leave it nothing to read.

  • It isn't a robots.txt block

    Google says this status doesn't come from robots.txt. A page Google indexed despite a robots.txt block shows as Indexed, though blocked by robots.txt instead.

Google describes this status in the Page indexing report guide, cloaking in its spam policies and the formats it reads in its list of indexable file types.

See what Google got from its last crawl

  • Inspect the URL and open the Page indexing section, which Google's report guide still calls Coverage, then click View crawled page. It shows the HTTP response and the HTML Google received at its last crawl. If that HTML is empty, an error message or a different page from the one visitors see, you've found the problem.

  • A live test doesn't check for this status, so a passing test doesn't clear it. Use it to compare instead: if the live test's screenshot and HTML show your content while the crawled version didn't, something changed since the crawl or the problem comes and goes. Google's URL Inspection guide lists the issues a live test can't detect.

Compare what Googlebot and a browser get

# Status, content type and size of the response for a browser
curl -sS -A "Mozilla/5.0" -o /dev/null \
  -w '%{http_code} %{content_type} %{size_download} bytes\n' https://yoursite.com/page

# The same request with Googlebot's user agent
curl -sS -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" -o /dev/null \
  -w '%{http_code} %{content_type} %{size_download} bytes\n' https://yoursite.com/page

How to fix page indexed without content

  1. Look at the crawled HTMLIn URL Inspection, open View crawled page for the indexed result and check that your content is in the HTML Google received.
  2. Compare Googlebot with a browserRun the two commands above. A different status or content type, or a large gap in size, means your server treats Googlebot's user agent differently. Matching results don't rule out a rule based on Google's IP addresses, which a request from your computer can't trigger.
  3. Check your firewall, CDN and pluginsLook for bot rules, caching rules or plugins that serve crawlers their own version of the page, and let verified Google crawlers get the same page visitors get.
  4. Check for a hackOpen the Security issues report in Search Console, and look in your site's files and database for pages, redirects or code you didn't add.
  5. Send each file with the right typeMake sure each response carries the Content-Type that matches it, such as text/html for a web page, so Google reads it with the right parser.
  6. Ask Google to crawl it againOnce Googlebot gets the same content as visitors, request indexing in URL Inspection, or click Validate fix in the Page indexing report for many URLs.

Frequently asked questions

Does robots.txt cause page indexed without content?

No. Google says this status isn't a robots.txt block. A page that robots.txt blocks but Google indexed anyway shows as Indexed, though blocked by robots.txt, which has its own fix in the Page indexing report guide.

Why does the live test show my page fine?

The live test doesn't check for this status. It fetches the page now, while the status comes from what Google got when it indexed the page. Compare the crawled page with the live test to see what changed, then request indexing.

Could my site have been hacked?

It's one possibility. Google's spam policies note that hackers sometimes cloak a hacked site so its owner doesn't spot the hack. Check the Security issues report in Search Console, and compare what Googlebot's user agent gets with what you see.