Google's spam policies define cloaking as presenting different content to users and search engines in order to manipulate rankings and mislead users, for example inserting text or keywords only when a crawler requests the page. Hacked sites often use it to hide spam from their owners.
The same idea applies to AI bots. Serving AI crawlers a special version (different titles, extra claims, hidden instructions) is cloaking by another name, and Google's spam policies now explicitly cover attempts to manipulate generative AI responses in Search. Bing's guidelines likewise treat prompt injection and other attempts to manipulate its AI as abuse.
Not everything that varies is cloaking. A paywall that lets Google see the full article, as a subscriber would, is allowed, and so are layouts that adapt to phones. The test: would a person and a bot asking for the same page get the same content?
Sources
- Spam policies for Google web search(opens in a new tab) · Google Search Central
- Latest Google Search documentation updates(opens in a new tab) · Google Search Central
- Bing Webmaster Guidelines(opens in a new tab) · Microsoft Bing