What Cloaking Is
Cloaking means showing search engines different content from what the visitor sees, with the intent to manipulate rankings in the SERP and mislead whoever arrives. That last part is not decoration: it is in the definition Google publishes, and it separates a forbidden practice from a legitimate difference.
The examples Google cites are unambiguous: showing the search engine a page about travel destinations while the user sees one about discount drugs, or inserting text and keywords only when the requester is a crawler.
It is classed among spam practices, that is, in the territory of black hat SEO, and it can cost rankings or presence in the results entirely.
The scope deserves settling first, because the term is misused in two directions. It is not cloaking that a page changes over time, nor that two people in different countries see different things. What defines the practice is the pair: search engine on one side, user on the other, and a difference put there on purpose.
Nor is it an old technique that has disappeared. It keeps turning up, especially on sites compromised by third parties: whoever arrives via a link sees advertising for something else while the crawler keeps receiving the legitimate page — and the owner does not notice for weeks, because in their own browser everything looks normal.
