According to me, cloaking is way to boost a pagerank by making search engine fool to showing a different page to the crawler. The duplicate page is full of rich keywords and content to get the pagerank up and to generate the traffic to the website. There are many types of cloaking such as JavaScript Cloaking, IP address Cloaking, User-Agent Cloaking.