Free auditStart free
GlossaryGlossary · Quality and policies

Cloaking

Cloaking means showing search engines different content than users to manipulate rankings. What Google's spam policy says, what isn't cloaking, and how to check.

4 min
read
2
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Cloaking is the practice of presenting different content to users and search engines with the intent to manipulate search rankings and mislead users. It is listed in Google's spam policies, and Google says sites that violate its policies may rank lower in results or not appear in results at all.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What cloaking is

Google's spam policies define cloaking as "the practice of presenting different content to users and search engines with the intent to manipulate search rankings and mislead users." The definition includes intent to manipulate rankings and mislead users.

Google lists two examples. One is showing a page about travel destinations to search engines while showing a page about discount drugs to users. The other is inserting text or keywords into a page only when the user agent requesting the page is a search engine, not a human visitor.

03Good to know

What Google says happens

Google says sites that violate its spam policies "may rank lower in results or not appear in results at all." Google detects violations through automated systems and, as needed, human review that can result in a manual action.
04Explained

What isn't cloaking

Google's policy carves out paywalls. Content behind a paywall is not cloaking if Google can see the full content just like any person who has access to the gated material, and you follow Google's Flexible Sampling guidance.

Google's definition turns on presenting different content to users and search engines with the intent to manipulate search rankings and mislead users.

05How it works

How to avoid cloaking

  1. 1

    Serve the same main content to everyone

    Don't branch on the Googlebot user agent to change the main content of a page.

  2. 2

    Keep keywords visible

    Don't insert text or keywords that only search engines get.

  3. 3

    Make JavaScript and image content accessible

    If your site uses technologies search engines have difficulty accessing, like JavaScript or images, Google has recommendations for making that content accessible to search engines and users without cloaking.

  4. 4

    Check for hacked or injected code

    Google notes that if a site is hacked, it's not uncommon for the hacker to use cloaking to make the hack harder for the site owner to detect. Check plugins and scripts you don't recognize.

  5. 5

    Gate content the documented way

    If you use a paywall, follow Google's Flexible Sampling guidance.

06How it works

Detecting cloaking on your site

If you suspect a plugin, hacked page or script is serving crawlers something different, compare what a browser sees with what Googlebot sees.
  1. 01

    Inspect the URL in Search Console

    Use the URL Inspection tool in Search Console to see the page as Google fetches it. Google's crawler documentation says its Google-InspectionTool user agent is used by Search testing tools such as the Rich Results Test and URL inspection.

  2. 02

    Compare it with your browser

    Open the same page normally. Significant differences in main text, links or redirects need an explanation.

  3. 03

    Try a crawler user agent

    Run curl -s -A "Googlebot" https://example.com/ > bot.html and curl -s https://example.com/ > user.html, then diff bot.html user.html. This only catches differences keyed on the user-agent string.

  4. 04

    Search your code for user-agent checks

    Look for Googlebot, bingbot and User-Agent in templates, server config and plugins. Any branch that changes main content by visitor type needs review.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Spam policies for Google web searchdevelopers.google.com · checked 2026-10-24
  2. 02Google common crawlersdevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Is cloaking ever acceptable?

Not as Google defines it: presenting different content to users and search engines with the intent to manipulate rankings and mislead users is listed as spam. Google says it doesn't consider a paywall or content-gating mechanism to be cloaking if Google can see the full content behind it just like any person who has access, and you follow Flexible Sampling.

02Can a site recover after cloaking?

Google's spam policies page describes reconsideration requests in its site reputation abuse section but gives no recovery steps for cloaking, so follow Search Console's manual action help. Remove the cloaking first and confirm the page is the same for crawlers and users.

03Is showing different content to logged-in users cloaking?

Google's policy addresses paywalls and content-gating: it isn't considered cloaking if Google can see the full content behind the gate just like any person who has access, and you follow Flexible Sampling. Showing crawlers something different to manipulate rankings is what the policy targets.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly