HOSTS FILE - Directing The Redirection !!!
Have anyone ever redirected to any other website each time when he enters the address of a regular website? Surprized....!!!Yes, this can be possiable by using HOSTS File.
Every Computer has the HOSTS file. Hosts File basically maps domain names of the hostnames to the IP addresses. The location of Hosts File in the Computer varies from Operating System to Operating System.
- In Microsoft Windows Vista/XP/2003/2000/NT, location of the Hosts File is - \windows\system32\drives\etc
- In Microsoft Windows 95/98/ME, location of the Hosts File is - \windows
- In Unix, location of Hosts File is - /etc
Redirecting to other website each time when one enters the address of the regular website is just the 3-step task. Just follow the following steps:
- Open the Hosts File in the Notepad.
- Make a new entry in the HOSTS File by entering the IP address of the website you want to redirect followed by the space and then entering the name of the regular website.
- Save the HOSTS file by File --> Save.
That's It....!!!! Now try opening both the websites....!!!!
Following video shows demo of Redirecting to www.facebook.com when one enters www.google.com:
Now, Try It Yourself....!!!
Hosts File is used not only for redirecting from one website to other, but it can also be tweaked to carry out the number of different interesting hacks:
- Blocking Certain Websites.
- Creating Smart Virus.
- Blocking Annoying Advertisements.
Thus, HOSTS File is Really Amazying.....!!!!
Happy Hacking....!!!
By Simar Preet Singh