Cloaking
Black hat. Against Google’s spam policies. Risks a manual action or a ranking drop. White, grey and black hat SEO compared
What is cloaking?
Cloaking is the practice of showing different content to search engines than to users in order to manipulate search rankings and mislead people. The server detects a crawler like Googlebot and serves it one page, while human visitors get something else. It is a clear breach of Google’s cloaking policy.
Google’s examples include showing a page about travel destinations to search engines while users see a page about discount drugs, and inserting text or keywords only when the request comes from a search engine. Cloaked images, where Google Images sees a different picture from the site, have their own manual action type.
Not every difference is cloaking. Paywalls and subscription content are fine if Google sees the full content you show subscribers and you follow Google’s guidance on flexible sampling. Showing different layouts to mobile and desktop users, or translating for different languages, is fine when the content is the same for Googlebot and users in the same situation.
Why cloaking matters for SEO
Cloaking is one of the oldest and most clearly banned tactics. It is also a common sign of a hacked site: attackers often cloak injected spam so the owner sees a normal page while Google sees pharma or casino links.
The white hat alternative is to make the real page good enough to rank: content optimisation, and server-side rendering if you worry Googlebot cannot see JavaScript content.
Risks of cloaking
- A “Cloaking and/or sneaky redirects” manual action, or “Major spam problems” for aggressive cases.
- Removal from search results for the cloaked pages or the whole site.
- If the cloaking comes from a hack, users may be sent to harmful pages and browsers may show security warnings.
- Loss of trust from users who land on something other than what the search result promised.
How to check a site for cloaking
- Use URL Inspection in Search Console and view the crawled page and screenshot. Compare it with what you see in a browser.
- Compare the title and snippet Google shows for the page with the live page; big differences are a warning sign.
- Look in server config, CDN rules and plugins for logic that changes content by user agent or IP for search engines.
- If you find cloaking you did not add, treat the site as hacked: clean it, close the hole and request review.
- Remove any intentional cloaking and serve everyone the same content, then request review if there is a manual action.
Cloaking example
A search result shows “Beginner’s guide to houseplants” with a matching snippet. Clicking it opens a page selling replica watches. URL Inspection shows Googlebot sees the houseplant guide; your browser never does.
Cloaking FAQ
Is dynamic rendering cloaking?
Google has said dynamic rendering is not cloaking as long as the content is similar for users and crawlers. It now calls dynamic rendering a workaround rather than a recommended approach.
Is a paywall cloaking?
Not if Googlebot sees the full content subscribers get and you mark up paywalled content as Google describes.
Related SEO terms
Sneaky redirectsBlack hat
Sneaky redirects send users to a different page than the one search engines saw, to deceive them, which breaks Google’s spam policies.
Hacked content and injected spamBlack hat
Hacked content is spam pages, links or redirects placed on a site without the owner’s permission by exploiting a security hole.
Black hat SEOBlack hat
Black hat SEO is the use of tactics that break search engines’ spam policies, such as paid links, cloaking or keyword stuffing, to rank faster.
Manual action (Google penalty)
A manual action is a penalty a Google reviewer applies when a site breaks its spam policies, demoting or removing pages until the issue is fixed.
Googlebot is Google’s web crawler. It fetches pages so Google Search can index them, using a smartphone crawler for most sites.
A user agent is the software making a web request, identified by a user-agent string such as Googlebot’s that servers and robots.txt can read.