Cloaking in SEO

■ QUICK DEFINITIONCloaking in SEO means showing search engines different content or URLs than the people who visit a page, usually to rank for searches the real page would not win.
By Mandeep Singh ChahalLast updated:
01 · Overview

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.

02 · Impact

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.
03 · Playbook

How to find and avoid cloaking

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
04 · Example

An example of cloaking

Picture an online store that serves Googlebot a long product page packed with city names, while shoppers see a short product grid. Rankings rise for a few weeks. Then Search Console shows a manual action for cloaking, and those pages fall out of results until the store removes the crawler-only text and files a review request.
05 · Pitfalls

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.
06 · Expert tip

Expert tip from Mandeep Singh Chahal

Mandeep Singh Chahal
Digital marketing expert

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.

07 · FAQs

Frequently asked questions

Is cloaking against Google's rules?
Yes. Google lists cloaking in its spam policies. A site caught doing it can get a manual action, lower rankings or removal from search results.
Is dynamic rendering cloaking?
Not by itself. Google says it generally does not treat dynamic rendering as cloaking as long as it produces similar content. Serving completely different content to crawlers and users can still count as cloaking.
Is a paywall cloaking?
Google says it does not consider a paywall to be cloaking if it can see the full content behind the paywall and the site follows the Flexible Sampling guidance. Paywall structured data helps Google tell the difference.
How do I check if my site is cloaking?
Compare the URL Inspection screenshot and rendered HTML in Search Console with what visitors see on desktop and mobile. Then check the Manual actions report for a cloaking or sneaky redirect notice.
What are sneaky redirects?
Search engines crawl one URL, and visitors are sent to a different one they did not expect. Google groups them with cloaking under a single manual action called "Cloaking and/or sneaky redirects".
Can I show different layouts to mobile users?
Yes. A different layout for phones is fine as long as the content Google crawls matches what mobile visitors get. The problem starts when the content itself differs to fool search engines.
How do I recover from a cloaking penalty?
Remove every crawler-only page or redirect, fix any security hole that let spam in, and make sure Google and visitors see the same content. Then send a review request from the Manual actions report and wait for Google's reply.
Get a FREE Audit WhatsApp