Cloaking is black-hat SEO ( Search Engine Optimization) Technique in which the content of the website which is going to be presented to the web spider or web crawler is manipulated in such a way that instead of going to the target URL, the crawler is directed to another URL. It is an unethical way of gaining the attention of the maximum users. The main purpose behind cloaking is to redirect the crawler to the already optimized page which is loaded with lots of keywords so that it helps the owner of the website to improve its ranking in SERP (Search Engine Result Pages). But this method works only when there is a use of CGI script on the hidden page.