What is cloaking in SEO?
Google's spam policies describe cloaking as "presenting different content to users and search engines" with the intent to manipulate rankings and mislead users. The server checks who is asking, usually by user agent or IP address. Googlebot gets one page. A human visitor gets another.
Google gives two examples. One is a page about travel destinations shown to search engines while users see a page about discount drugs. The other is text or keywords added to a page only when the visitor is a search engine crawler. Sneaky redirects are the close cousin: search engines crawl one URL and visitors get sent somewhere else.
Why cloaking hurts your site
- Manual actions: Google's Manual actions report has a separate action called "Cloaking and/or sneaky redirects". Pages hit by it can rank lower or drop out of results.
- Hacked sites: Spam injected by attackers is often shown only to crawlers, so the owner sees a normal site in their own browser and misses the problem.
- Lost trust: A searcher who clicks a result and lands on something unrelated leaves, and remembers the brand for the wrong reason.
How to find and avoid cloaking
- Compare what Google seesRun the page through URL Inspection in Search Console and look at the rendered HTML and screenshot. Check it against what a visitor sees on desktop and mobile.
- Test redirects from more than one sourceOpen the page from a search result, from a direct visit and on a phone. A redirect that only fires for some visitors needs an explanation.
- Mark paywalls properlyGoogle says a paywall is not cloaking when Google can see the full content and you follow its Flexible Sampling guidance. Wrap the paywalled section in paywall structured data.
- Keep rendered versions matchedIf crawlers get pre-rendered HTML, keep it close to what users get. Google's dynamic rendering guide calls this a workaround and recommends server-side rendering, static rendering or hydration instead.
- Clean up and request reviewIf a manual action appears, remove every crawler-only version, fix any security hole that let spam in, then send a review request from the Manual actions report. A full technical SEO check helps catch leftovers.
An example of cloaking
Common cloaking mistakes
- Letting dynamic rendering drift: The crawler version gets extra text or links the user version lacks. Google warns that serving completely different content to users and crawlers can be treated as cloaking.
- Hidden keyword blocks for bots: Inserting text only when the user agent is a search engine is one of Google's own cloaking examples.
- Paywalls with no markup: Without paywall structured data, Google has a harder time telling a paywall from cloaking.
- Checking only in your own browser: Hacked sites often look fine to the owner. Look at what Google rendered.
- Buying "safe cloaking" tools: Software sold to show bots one page and people another is doing exactly what the policy bans. See white-hat SEO for methods that hold up.
Expert tip from Mandeep Singh Chahal
Once a quarter, open URL Inspection on your top ten pages and compare Google's screenshot with what you see on your phone. If the two differ, find out why before you touch anything else. Most cloaking I find on client sites was put there by a plugin, a hack or an old agency, and the owner had no idea.