What this Googlebot simulator does
A Googlebot simulator fetches a page while claiming to be Googlebot and shows you what came back. That’s useful for two questions: does my site show Google something different from what people see, and is there anything in my HTML for a crawler to read before JavaScript runs? The box above answers both.
- P2, cloaking. We load your home page twice: once with a normal browser user-agent, once with Googlebot’s. Then we compare the final address, the title, the body text and the outbound links of the two copies.
- I4, empty HTML. We count the words of visible text in the raw HTML your server sends, before any script runs, and look for the empty
<div id="root"></div>that client-rendered apps start with.
Both run on your home page. The full scan runs them with 43 other checks, and the features page lists them all.
Before the details, one honest limit that shapes everything below. A user-agent string is a label a request carries. Anyone can write “Googlebot” in it, and many servers know that. So a simulator like this one sees what a site shows to requests that say they are Googlebot. It doesn’t see what the site shows to requests that really come from Google. Most of the time those are the same. When they aren’t, only Google’s own tools can tell you.
What a user-agent fetch can and can’t simulate
Here is what we send. The Googlebot copy uses this exact header:
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
That’s Googlebot’s desktop string. Google’s Googlebot documentation says “For most sites Google Search primarily indexes the mobile version of the content.” Its smartphone crawler sends a different string that also contains the Googlebot token. Cloaking code almost always matches on that token, so either string triggers it. A site that cloaks only to the smartphone string would slip past this check.
The browser copy sends a desktop Chrome string with SitePenaltyBot/1.0 added at the end, so your logs show who we are.
| What a real Googlebot visit involves | Does our simulator reproduce it? |
|---|---|
The Googlebot user-agent token |
Yes |
| Requests from Google’s IP ranges | No. Our requests come from our own servers |
A reverse DNS name ending in googlebot.com |
No |
| Following redirects | Yes, up to six hops |
| Rendering JavaScript in headless Chromium | No. We read the HTML as served |
| Mobile-first crawling with the smartphone crawler | Partly. We send the desktop string |
| Fetching CSS, scripts and images | No, for this check |
| Obeying robots.txt | Not for this one request; the robots.txt checker reads what Googlebot may crawl |
The second and third rows are the ones that matter. They’re how a site tells a real visit from a pretend one.
How sites verify Googlebot
Google tells site owners to verify crawlers before trusting them. The Googlebot page warns that “the HTTP user-agent request header used by Googlebot is often spoofed by other crawlers.” The verification guide gives the method: “Run a reverse DNS lookup on the accessing IP address from your logs, using the host command.” Then confirm the name, and look it up forward again to make sure it maps back to the same address.
$ host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.
$ host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1
The guide says to “Verify that the domain name is either googlebot.com, google.com, or googleusercontent.com.” Google also publishes its crawler IP ranges as JSON for automated checks.
This cuts both ways for a simulator.
- Sites that verify and block refuse our Googlebot request, often with a 403. P2 then reports “Couldn’t verify” rather than a failure. That’s the right answer: we don’t know what Google gets.
- Sites that verify and cloak serve real Googlebot one page and everyone else, including us, another. We get the visitor copy twice and see no difference. Cloaking keyed on Google’s IP addresses is invisible to every outside scan. Our check’s own description says so.
- Hosts that prerender for verified crawlers do the same thing for a good reason: real Googlebot gets rendered HTML, everyone else gets the app shell. More on that under I4.
So read a P2 pass as “no cloaking keyed on the user-agent”. That catches the crude kind, which is also the kind most hacked sites use, because it’s what injected code can do without knowing Google’s address ranges.
How P2 compares the two copies
P2 fetches the home page once with each user-agent, follows redirects, and then runs these comparisons. Each one that fires adds an evidence line. Any line fails the check.
| Comparison | How it’s measured | Fires when |
|---|---|---|
| Final address | The host each fetch ends on, after redirects | Googlebot ends on a different site than the browser (www and subdomains count as the same site) |
| Title | The <title> text, lowercased, punctuation and extra spaces removed |
The two titles differ at all |
| Body text | The overlap of 5-word sequences, when both copies have at least 80 words | Overlap below 50% |
| Body length | Word counts, when either copy has fewer than 80 words | The counts differ by more than 150 words |
| Outbound links | Hosts of links pointing off your site | 3 or more outside hosts appear only in the Googlebot copy |
If the Googlebot request fails or answers with a non-2xx status, the check stops and reports unknown, with both status codes as evidence. If the browser request fails, it reports unknown too.
P2 is an exact check at high severity, and the catalog marks it as one that alerts on paid plans when it goes from pass to fail.
Why 5-word sequences
Comparing two pages word by word fails in both directions. Two different pages share most common words, and one page with a rotating headline looks different from itself. So P2 compares shingles: every run of five consecutive words. “We make mugs and bowls by hand” gives three shingles: “we make mugs and bowls”, “make mugs and bowls by” and “mugs and bowls by hand”.
The overlap is the number of shingles both copies share, divided by the number that appear in either. Identical pages score 100%. A page with one rotating testimonial still scores high, because the rest of its shingles match. A page whose Googlebot copy is about something else entirely scores near zero.
The 50% line is deliberately loose. Real sites vary between two requests: a date, a random product, a session-specific banner. None of that moves a full page below half. Replacing the content does.
What the output looks like
All five sites we run pass P2 with identical copies. This is the line for each of them:
pass P2 Googlebot and a browser get the same page (100% text overlap).
Here’s a failure from the scanner’s test fixtures, where the fake site serves Googlebot a pharmacy page:
FAIL P2 [high] Googlebot gets different content than a browser.
Title for a browser: "Example Pottery: Hand-Thrown Mugs and Bowls"; for Googlebot: "Cheap pills online"
Text overlap between the two copies is 1%
And here’s the blocked case, also from the fixtures:
?? P2 Couldn't verify: the Googlebot request got 403. Many sites block unverified Googlebot requests, which is normal.
Browser: 200
Googlebot user-agent: 403
One more case matters. If both copies have fewer than 80 words, P2 skips the overlap measure and compares lengths. An app that sends an empty shell to everyone passes P2 with no overlap figure in the summary. That pass is true, both copies are the same, but it tells you nothing about content. I4 is the check that speaks to it.
Cloaking: what Google’s policy says
Google’s spam policies define cloaking as “presenting different content to users and search engines with the intent to manipulate search rankings and mislead users.” The examples are concrete:
- “Showing a page about travel destinations to search engines while showing a page about discount drugs to users”
- “Inserting text or keywords into a page only when the user agent that is requesting the page is a search engine, not a human visitor”
The second example is exactly what P2’s user-agent comparison is built to catch.
The same section gives the reason most site owners should care even if they’d never cloak on purpose: “it’s not uncommon for the hacker to use cloaking to make the hack harder for the site owner to detect.” Injected spam often shows only to Googlebot. The owner browses the site, sees nothing wrong, and learns about it from a drop in traffic or a Search Console message. A user-agent comparison finds that kind of hack in seconds.
Differences that aren’t cloaking
Not every difference is spam. Google names some cases itself.
| Situation | Google’s position | What P2 does |
|---|---|---|
| Dynamic rendering: crawlers get prerendered HTML, users get the app | “As long as your dynamic rendering produces similar content, Googlebot won’t view dynamic rendering as cloaking.” (dynamic rendering) | Can fail on the length rule if the prerender is keyed on the user-agent and the app copy is a near-empty shell |
| A paywall that shows Google the full article | Not cloaking if Google sees what a subscriber sees and the site follows Google’s flexible sampling guidance (spam policies) | Can fail on overlap; read the evidence |
| Bot protection that sends Googlebot a challenge page | A blocked crawler. Google’s definition of cloaking needs intent to manipulate rankings | Reports unknown on a 403, or fails on title and text if the challenge answers 200 |
| A different page for crawlers | Cloaking. Google’s example: a site “that serves a page about cats to users and a page about dogs to crawlers” | Fails |
Google also says dynamic rendering “was a workaround and not a long-term solution,” and recommends server-side rendering, static rendering or hydration instead. If P2 fails only because of a prerender setup, the cleanest fix is to serve the rendered HTML to everyone.
Raw HTML versus the rendered page: what I4 reads
The second check in the box asks a simpler question: before any JavaScript runs, is there anything here to read?
Google’s JavaScript SEO basics describes three phases: crawling, rendering and indexing. Googlebot first fetches the HTML. Pages then wait in a rendering queue, and “Once Google’s resources allow, a headless Chromium renders the page and executes the JavaScript.” Google says a page “may stay on this queue for a few seconds, but it can take longer than that.”
Google is explicit about the model that causes trouble: “Some JavaScript sites may use the app shell model where the initial HTML does not contain the actual content.” And it still recommends sending content in the HTML, partly because “not all bots can run JavaScript.” Many AI answer engines and link preview bots read the HTML and stop there.
How I4 decides
I4 reads your home page as a browser user-agent gets it, then:
- Takes the
<body>and removes<script>,<style>,<noscript>,<template>and<svg>blocks. - Strips the remaining tags and counts the words.
- Looks for an empty app root: a
<div>with the idroot,app,__next,__nuxt,svelteorq-appand nothing inside it. - Counts external
<script src>tags.
| What the raw HTML holds | I4 result |
|---|---|
| Fewer than 50 words, plus an empty app root or at least one external script | Fail, medium: “The HTML is an empty shell until JavaScript runs.” |
| Fewer than 150 words around an empty app root | Pass, with the word count noted |
| Anything else | Pass, with the word count |
Text inside <noscript> doesn’t count. A “You need to enable JavaScript to run this app” message is the classic example: it’s in the HTML, but it isn’t content.
I4 is an exact check at medium severity, not high. Google does render JavaScript, so an empty shell is a risk and a delay, not an automatic exit from the index.
What it looks like on real sites
The five sites we run all ship content in the HTML. Their home pages hold between 1,282 and 2,941 words before JavaScript, so I4 passes with a line like this:
pass I4 Content is in the HTML before JavaScript runs (2941 words).
For contrast, we ran the box on a third-party landing page built with an AI app builder on a client-rendered React template. We won’t name it. The raw HTML is a head full of meta tags and a body with one empty div:
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Our scanner’s output:
FAIL I4 [medium] The HTML is an empty shell until JavaScript runs.
· Raw HTML holds 0 words of visible text
· An empty app root (<div id="root"></div> or similar)
· 2 external scripts
pass P2 Googlebot and a browser get the same page.
Our Googlebot-labeled request also got 0 words, so P2 passed with no overlap figure. Some hosts send prerendered HTML only to crawlers they have verified by IP, which our request isn’t. On those hosts real Googlebot may get a full page while every unverified client gets the shell. That’s not something we can confirm from outside. URL Inspection can. The Lovable SEO page goes through one builder that works this way.
Typical raw HTML by stack
This table is about defaults. Every framework below can be configured either way.
| Stack | Default raw HTML | I4 usually |
|---|---|---|
| Static site generators (Astro, Hugo, Eleventy, Jekyll) | Full content | Pass |
| Next.js, Nuxt, SvelteKit, Remix with server or static rendering | Full content, plus hydration scripts | Pass |
| A React, Vue or Svelte single-page app built with Vite | Empty root div and a module script | Fail |
| Create React App | Empty root div, a noscript message | Fail |
| WordPress and most CMSs | Full content | Pass |
| AI app builders | Depends on the builder and the project’s age | Scan it |
Fetch as Google: what the real thing is
“Fetch as Google” was the name of a Search Console tool that fetched a URL from Google’s side. It no longer exists. Google’s 2018 announcement introduced its successor, the URL Inspection tool.
The URL Inspection help page lists what it does. Two of those features are the reason it beats any outside simulator:
- “Inspect a live URL: Test whether a page on your site might be indexable.”
- “View a rendered version of the page: See a screenshot of how the Google-InspectionTool sees the page.”
It fetches from Google, so IP-based behavior applies. It renders, so you see the page after JavaScript. And it shows the indexed version, the one Google stored, next to the live one. One caution from the same page: “the live test cannot predict whether or not the tested version will be considered canonical.”
| Our simulator | URL Inspection | curl -A Googlebot |
|
|---|---|---|---|
| Who can run it | Anyone, on any site | Verified owners of the property | Anyone |
| Requests from Google’s IPs | No | Yes | No |
| Renders JavaScript | No | Yes | No |
| Compares Googlebot with a browser | Yes, automatically | No, you compare by hand | You run it twice and diff |
| Shows what’s in Google’s index | No | Yes | No |
| Detects IP-based cloaking | No | Yes, by showing what Google got | No |
Use our check for the quick read and for sites you don’t own: a site you’re about to buy, a client’s site before they give you access, a competitor after a strange ranking jump. Use URL Inspection when you own the site and need the final word.
What injected cloaking code looks like
When P2 fails on a site whose owner never touched the server, the cause is usually a few lines someone else added. The pattern is old and simple: read the user-agent, and if it names a search engine, print something extra. A typical PHP version, the kind found at the top of a theme file or in a plugin, looks like this:
<?php
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
if (preg_match('/googlebot|bingbot/i', $ua)) {
echo file_get_contents('https://links.example/feed.html');
}
?>
Visitors never trigger the branch, so the site looks normal in every browser. Googlebot gets a block of outbound links, or a whole replacement page, fetched from the spammer’s server on each crawl. That’s why the links-only-Googlebot-sees rule in P2 counts outside hosts. The injected block almost always points somewhere new.
To find code like this on your own server, search for places that read the user-agent and see which of them you recognize:
grep -rn --include=*.php "HTTP_USER_AGENT" /var/www/
grep -rn "googlebot" /var/www/ --include=*.php --include=*.js --include=.htaccess
The same idea shows up in .htaccess as a rewrite rule with a RewriteCond %{HTTP_USER_AGENT} line, and in Node or edge code as a check on the user-agent header. Legitimate code reads the user-agent too, for analytics or bot protection, so the search gives you a list to review, not a verdict. Anything that fetches remote content only for crawlers is the part to remove.
After cleaning up, run the box again. A pass with 100% text overlap means both user-agents now get the same page. Then change every password and key with write access to the server, because the code got there somehow.
Run the comparison yourself
Everything P2 does, you can do with curl. Fetch both copies, then compare.
curl -sL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" \
https://example.com/ -o browser.html
curl -sL -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" \
https://example.com/ -o googlebot.html
grep -o "<title>[^<]*" browser.html googlebot.html
diff <(grep -o 'href="https\?://[^"/]*' browser.html | sort -u) \
<(grep -o 'href="https\?://[^"/]*' googlebot.html | sort -u)
The last command lists outside hosts that appear in only one copy. Lines starting with > are hosts only Googlebot sees. One or two can be noise, like a tracking pixel. Three or more unfamiliar hosts, especially pharmacy, casino or loan domains, is what P2 calls a failure.
To count raw words the way I4 does, strip scripts and tags:
python3 -c "import re,sys;t=open('browser.html').read();t=re.sub(r'(?s)<(script|style|noscript|template|svg).*?</\1>',' ',t);print(len(re.sub(r'<[^>]+>',' ',t).split()))"
That counts the head too, so it runs a little higher than I4’s body-only count.
What to do with a finding
P2 fails on title or text. Look at the Googlebot copy first. If it holds content you didn’t write, the site is probably hacked. Check server config, .htaccess, plugins, themes and recently changed files, and look for code that reads the user-agent. Then clean up, change credentials, and request a review in Search Console if Google has flagged the site.
P2 fails on links only Googlebot sees. Same diagnosis. Hidden link injection is a common hack, and the links usually point to the spammer’s own sites.
P2 fails because of a prerender setup. Make sure the prerendered copy carries the same content as the app. Better, render on the server for everyone.
P2 says couldn’t verify. Nothing to fix. If you want the comparison, check the page with URL Inspection, or allowlist our user-agent for a test.
I4 fails. Prerender or server-render public pages. At minimum ship the title, the main headline and the main text in the HTML. Then check the result with URL Inspection’s rendered screenshot, and make sure the pages also carry the right canonical tags and no stray noindex.
None of these checks can see a manual action or an algorithmic demotion. Those live in Search Console and in Google’s ranking systems. If the scan is clean and a site still vanished, the not on Google guide covers the rest of the list.
Questions
Can any tool really see a page exactly as Googlebot sees it?
Only Google's own tools can. Outside tools, ours included, send Googlebot's user-agent string from their own servers. Sites that check whether a request really comes from Google can tell the difference. The URL Inspection tool in Search Console shows what Google itself fetched and rendered, and it is the reference when the two disagree.
What replaced Fetch as Google?
The URL Inspection tool in Search Console, which Google introduced in 2018. Its live test fetches a URL from Google's side and shows a screenshot of the rendered page, the HTML and the resources it loaded. It works only for properties you have verified, which is why outside simulators exist for quick checks and for sites you don't own.
Is dynamic rendering cloaking?
Google says it generally isn't, as long as the version crawlers get has similar content to the one users get. Serving crawlers a page about something else is cloaking. Google also calls dynamic rendering a workaround and recommends server-side rendering, static rendering or hydration instead.
Why does the check say it couldn't verify?
Your server, firewall or CDN refused our request that carried Googlebot's user-agent, usually with a 403. Many sites block requests that claim to be Googlebot but don't come from Google's addresses, which is reasonable. It means we can't compare the two copies, not that anything is wrong.
My page is built with React. Will Google index it?
Google renders JavaScript, so it can, but rendering happens in a later pass and can fail. Many other crawlers and AI tools never run JavaScript at all. If your raw HTML is an empty app shell, prerender or server-render public pages so the title, headline and main text are in the HTML.
Updated 2026-12-02. Checks on this page: P2, I4. All 45 checks are on the checks page.