Home / Blog / Google Spam Policies / What is Google's cloaking policy?
Answers

What is Google's cloaking policy?

27 November 2026 · By John Carlsson
Google's cloaking policy forbids showing different content to search engines than to users in order to manipulate rankings and mislead people. Examples include serving a harmless page to Googlebot while visitors see something else, or adding keywords only when a crawler asks. Cloaking can lead to lower rankings, removal from results or a manual action for cloaking or sneaky redirects.

What the Google cloaking policy says

The Google cloaking policy is short and clear. Google's spam policies define cloaking as presenting different content to search engines and to users, with the intention of manipulating search rankings and misleading users. The two examples Google gives are:

The intent and the effect both matter. The visitor who clicks a result should get what Google saw when it ranked the page.

What is not cloaking

Google's spam policies name one legitimate case directly. Paywalls and gated content are not cloaking if Google can see the full content behind the paywall and the site follows Google's flexible sampling guidance.

Other changes that keep the same core content for everyone, such as layouts that adapt to screen size, are not what the policy describes, because nothing is being hidden from users or from search engines. If in doubt, check that Googlebot and a normal visitor receive the same main content.

The test is simple: would a person who saw both versions feel misled?

How cloaking is detected and handled

Google uses automated systems and, where needed, human review. Sites found to be cloaking may rank lower or be removed from results. A human reviewer can also issue a manual action. Google's Manual actions report help page lists "cloaking and/or sneaky redirects" as one type, with related categories for sneaky mobile redirects and cloaked images.

Cloaking is often not deliberate. Common accidental causes include:

  1. Hacked sites, where injected code shows spam only to crawlers.
  2. Security or bot management rules that serve a block page or a different version to Googlebot.
  3. Plugins that rewrite pages based on the user agent.
  4. Redirect rules that send certain user agents or referrers to other domains.

To check a page, use the URL Inspection tool in Search Console to see the HTML and screenshot Google fetched, then compare it with what you see in a normal browser. You can also request the page with a crawler user agent from the command line:

```bash curl -s -A "Googlebot" https://example.com/page | head -50 curl -s https://example.com/page | head -50 ```

Bear in mind that some cloaking checks the visitor's IP address, not just the user agent, so the URL Inspection tool remains the most reliable view. If you have a manual action, remove the cloaking everywhere, check that Google sees the same content as users, and then request review in Search Console.

Our tool

The AI Web Page SEO Google Spam Policy Audit fetches each page as a normal visitor, as Googlebot, on a phone and as a visitor arriving from a Google search, and compares the responses to find cloaking and sneaky redirects, including redirects made by scripts, so you can investigate anything unexpected before Google does.

Sources

Frequently asked questions

Does the Google cloaking policy cover different content on mobile and desktop?

Not in itself. Responsive layouts and device-specific designs are normal, as long as the main content and meaning are the same for users and for Googlebot. It becomes a problem when the difference is used to deceive, for example sending mobile users to an unrelated page. Google treats that as a sneaky mobile redirect, which has its own manual action category.

Can a hacked site be flagged for cloaking?

Yes. Attackers often inject spam that only appears when a search engine crawler visits, so the owner sees a normal site in the browser. If Search Console shows unexpected search results or a manual action you do not recognise, compare what the URL Inspection tool fetches with what you see, and check your server files and plugins for injected code.

💬 Got a problem?

aiwebpageseo.com is a data-driven SEO and AEO platform providing a free suite of technical website tools.