Cloaking

Definition
Cloaking is a search engine optimization technique where the content presented to search engines differs from what is shown to users. The goal is usually to manipulate search rankings by making pages appear more relevant or keyword-rich than they actually are. For example, a website may serve optimized text to Google’s crawlers while displaying images or unrelated content to human visitors.
Search engines, particularly Google, classify cloaking as a violation of webmaster guidelines. When detected, it can lead to ranking penalties or complete removal from search results. Businesses that attempt cloaking risk losing visibility, credibility, and long-term trust from both users and search engines.
Advanced
Cloaking can be implemented in several ways. User agent cloaking serves different content depending on whether the visitor is a crawler or a browser. IP-based cloaking delivers alternate content based on the visitor’s IP address. Some cloaking techniques even involve advanced scripts to identify bots and deliver tailored versions of a page.
Although cloaking is usually associated with black hat SEO, certain controlled uses may not be penalized. Examples include showing simplified pages for screen readers, language translations, or region-specific compliance notices. In such cases, the intent is user experience rather than manipulation, and search engines typically consider them acceptable.
Why it matters
Use cases
Metrics
Issues
Example
A website serves keyword-stuffed text to search engine crawlers while showing visitors only a video player. Once discovered, Google issues a manual penalty, causing the site to disappear from search results and forcing the business to rebuild its SEO strategy.