Cloaking is a black hat SEO technique that shows different content to search engine crawlers than what human visitors see. It is one of the most serious violations of search engine guidelines and can result in immediate deindexation.
Cloaking involves detecting whether a request comes from a search engine bot (via user agent or IP address) and serving different content accordingly. For example, showing keyword-rich text to Googlebot while displaying a completely different page to human visitors. Google considers this deceptive because the indexed content does not match what users find when they click through.
Cloaking is explicitly listed as a spam technique in Google's Webmaster Guidelines. Sites caught cloaking face severe penalties, including manual actions that remove the site from search results entirely. Google's SpamBrain AI system is specifically trained to detect cloaking patterns.
Cloaking works by examining the incoming request's user agent string or IP address. If it matches a known search engine crawler, the server delivers an SEO-optimized version. For everyone else, a different version is served. Google detects this by comparing its crawled version against what users actually see, using its Chrome-based rendering and real user data.
Want to learn more? Explore our SEO Glossary or check out our expert guides on SEO strategies.