SEO

Cloaking

Also called Cloaked content

The practice of serving one version of a page to search crawlers and a different one to human visitors.

Quick facts: Cloaking

Category
SEO
Also called
Cloaked content
Level
Intermediate
Affects
Indexing, rankings, manual actions, site trust
Where to see it
Search Console URL Inspection (live test), Screaming Frog with a Googlebot user agent, server logs
In this article4
  1. How cloaking works
  2. Why cloaking matters
  3. Where cloaking goes wrong
  4. What to do about it

How cloaking works

A server can tell a good deal about who is asking for a page: the user agent string, the IP address, the referring source, whether JavaScript runs. Cloaking uses one of those signals to branch. When the request looks like a search crawler it returns keyword-heavy text; when it looks like a person it returns something else — a thin sales page, a redirect, an advert, sometimes a different site altogether.

The branch does not have to be crude. Text stacked invisibly behind an image, content served only to visitors from one country while the crawler in another sees the full page, or a script that rewrites the body after the crawler has taken its copy, all reach the same end. The indexed version and the visited version do not match.

Why cloaking matters

Search engines index what they are shown and then rank it on behalf of people who will see something different. That breaks the basic bargain, so it is treated as a spam policy violation rather than a technical mistake. The consequence is not a gentle ranking adjustment — it is a manual action, and the pages or the whole site can be removed from results while it stands.

It matters commercially because recovery is slow. Getting back in means removing the mechanism, proving it is gone and waiting for a reconsideration review, and any rankings the cloaked pages held disappear in the meantime. Whatever those pages were feeding — enquiries, sales, brand searches — stops with them.

Where cloaking goes wrong

Most cloaking I find is not deliberate. A site puts its main content behind a login and serves the crawler the full article to stay indexed. A migration leaves an old rule that shows crawlers a legacy template. A developer sets up dynamic rendering for a JavaScript site and the rendered snapshot drifts out of step with what the browser builds. Intent does not protect you here; the test is simply whether the two versions match.

The deliberate version usually arrives with a supplier. Cheap ranking packages sometimes rely on cloaked doorway pages that redirect people onward to the real site, and the client learns what was done only when the traffic vanishes. Ask any agency directly whether anything on your site is served differently to crawlers, and expect a straight answer.

What to do about it

Fetch your important pages as a crawler would and compare them with what a browser renders. The URL Inspection tool in Search Console has a live test that shows Google the rendered HTML it received — read that HTML rather than skimming the screenshot. Where geo-targeting, device detection or personalisation exists, confirm the main content and the internal links survive every branch.

If you find cloaking, remove the rule rather than soften it, then check the manual actions report. Paywalls and member content have a supported route: mark them up honestly and show the crawler the same preview a first-time reader gets. Sorting this out belongs squarely inside technical SEO work, and it is worth doing before anyone spends on content or links that a policy violation would waste.

Do and do not

Do

  • Serve every visitor and crawler the same page content
  • Test live URLs in Search Console URL Inspection
  • Check geo or device rules do not hide main content

Do not

  • Detect Googlebot and swap the page it sees
  • Hide text behind CSS to please a crawler
  • Accept an agency promise built on cloaked pages

Questions people ask about this

Is showing different content to visitors from different countries cloaking?

Not on its own. Serving a Nepali visitor prices in rupees and an Australian visitor prices in dollars is ordinary localisation, and search engines expect it. It becomes cloaking when the crawler is singled out and handed a version no ordinary visitor can reach. The safe test is whether a person browsing from the same location sees what the crawler saw.

Does a paywall count as cloaking?

No, provided you are honest about it. Subscription publishers can restrict full articles as long as the crawler receives the same preview a new visitor receives, and the restricted section is marked up as such. The violation begins when the crawler is given the complete article that no unregistered reader could ever see.

How would I know if a previous agency used cloaking on my site?

Compare the live test in Search Console URL Inspection against the same page in your browser, and look for pages you never asked for, such as thin location or keyword pages sitting on a subfolder or subdomain. Check the manual actions report as well. A sudden loss of rankings across many pages at once is the usual first symptom.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.