On-page SEO
Cloaking
Last updated
What is Cloaking?
Cloaking is a black-hat SEO technique where the content or URL presented to search engine crawlers is different from what is shown to human visitors. For example, a page might show Googlebot a keyword-rich, optimized version of the content while displaying a completely different page — often laden with ads or spam — to actual users. This deliberately deceives search engines about the true nature of the page.
Cloaking is one of the most severe violations of Google's guidelines and almost always results in a manual penalty and complete removal from the search index when discovered. It is distinct from legitimate techniques like IP delivery or user-agent detection for accessibility purposes, where the intent is to improve user experience rather than deceive crawlers.
Why it matters for SEO
Cloaking is considered one of the most egregious black-hat tactics and carries the harshest penalties in SEO, including complete deindexation. Understanding it is important for identifying whether a compromised site is serving malicious content to bots and for conducting thorough technical audits.
Example
A site detects Googlebot's user agent and serves it a keyword-rich article about "cheap flights", while human visitors are redirected to a gambling page. That mismatch between what search engines and users see is cloaking and violates Google's spam policies. By contrast, serving the same content in a mobile-friendly layout to phones is not cloaking, because the content is equivalent.
Go further with Cloaking
Put the theory to work
LazySEO researches keywords, writes SEO articles and publishes them to your site on a schedule.