The Hosts file on your Windows computer is a powerful administrative file used in networking. Before your computer checks with the Domain Name Server (DNS), it checks to see if any special instructions are in in the hosts file to direct the web address elsewhere. Using the hosts file is useful if you need to redirect a specific website to another, such as directing an ad website to something you don't mind navigating to, such as a search engine.
Open your Hosts file located at "C:\Windows\System32\Drivers\Etc" with a plain text editor such as NotePad.
Type the IP address you want to redirect to in the format of "x.x.x.x" where x is equal to any number from one to 255.
Press the spacebar and type the address you want to redirect from. If you want to redirect a gaming site such as "http://www.games.com" because someone is playing games instead of working, you might enter "127.0.0.1 www.games.com," which will redirect the site to your localhost.