What is cloaking
Cloaking refers to presenting different content to human visitors and search engines. It is a violation of the Google Webmaster Guidelines because it presents visitors with results that differ from what they expected.
Some examples of cloaking includes:
- Serving a page of HTML text to search engines while showing a page of Flash or images to human visitors
- Inserting text or keywords into a page only when the user agent requesting the page is a search engine, and not when it is a human visitor
It should be noted that serving different content to visitors based on their location or device is perfectly fine and will not result in any penalization.