How to Use a Hosts File in Windows Vaughan ON
Often times websites bombard you with advertisements when all you want to do is view the page in Vaughan. Other times you may accidentally download spyware from a harmful website. Sometimes you just need to block a webpage, either from a child or from a co-worker. A custom HOSTS file solves all of these problems.
Compucare Canada
905-881-7604
905-881-7604
27 Buttermill Avenue
Vaughan, ON
Vaughan, ON
Compu Data Unytouch Manufacturing
(905) 792-0542
(905) 792-0542
27 Armthorpe Rd
Brampton, ON
Brampton, ON
Avaal Technology Solutions Inc
(905) 595-1313
(905) 595-1313
2 Automatic Brampton
Brampton, ON
Brampton, ON
Nexgen Computers
(905) 792-9993
(905) 792-9993
2 Melanie Drive, Unit 7A
Brampton, ON
Brampton, ON
Compu Prime
905-760-2444
905-760-2444
467 Edgeley Boulevard
Vaughan, ON
Vaughan, ON
PC Tech outlet
(416) 995-7369
(416) 995-7369
P.O. Box 30285
Toronto, OO
Toronto, OO
BSC Solutions Group Ltd
(905) 458-9333
(905) 458-9333
8 Edvac Dr Brampton
Brampton, ON
Brampton, ON
Computer Star
416-434-6427
416-434-6427
4209 Bloor St W
Etobicoke, OO
Etobicoke, OO
Nanotek Computers & Consulting Corp.
(905) 500-6266
(905) 500-6266
4525 Ebenezer Road, #19
Brampton, ON
Brampton, ON
How to Use a Hosts File in Windows
Steps
- Visit http://www.mvps.org/winhelp2002/hosts.htm and download the file "hosts.zip". Extract this zip file to your desktop.
- Next, locate your HOSTS file. The hosts file is located in different places depending on your Windows version. For XP it is located in the C:\WINDOWS\SYSTEM32\DRIVERS\ETC directory. For 2000 it is located in the C:\WINNT\SYSTEM32\DRIVERS\ETC or C:\WINDOWS\SYSTEM32\DRIVERS\ETC folder, depending on the nature of your Windows install.
- Copy the file "hosts" from the extracted zip file by right clicking on it and selecting "copy" and then paste it in the directory listed above. Windows will ask you if you wish to overwrite the existing file. Choose "Yes". Many advertising sites and known spyware sites are now being blocked.
- OR if you are less inclined to do the above steps manually, try the following:
- Download 1 or 2 of the many 'freeware' anti-spyware products listed here.
- Run the 'immunization' function as described in this example for Spybot. And now you will get updates to this list automatically when the anti spyware software updates.
Tips
- To view the contents of this file, browse to the location of the file and double click on it. For XP Users you will be asked whether you want to search the internet for a program to open the file or if you wish to choose from a list. Choose the list option and open the file with Notepad. You can now view all of the websites that are being blocked.
- To manually block a site, go to the bottom of the file and on a new line type "127.0.0.1 siteyouwanttoblock.com" without using quotes. This will block siteyouwanttoblock.com. Repeat the process for any other sites you wish to block, and then save the file by going to File>Save.
- To unblock a site, find its line and put a "#" in front of the 127.0.0.1 for that line.
Warnings
- This file will block many common adware, spyware, and advertising sites. In some cases where you actually wish to view an advertisement it may be blocked, or may lead to an error page when clicked. This is most common when using Google Adwords or searching in Google. To view the site, simply type its full real url into the browser.
- On some pages, you may receive a "page not found" error on part of the page, usually in a square or rectangular box. This is normal and is part of the ad blocking process.
- NEVER delete or comment out the first line of the file reading "127.0.0.1 localhost". This is normal and is needed by Windows.
- If other PCs connect to the internet VIA your PC, such as pcs using Internet Connection Sharing, the HOSTS file will block websites not only on your PC, but on the other PCs as well. This is because the HOSTS file blocks all outgoing connection attempts by ANY PC to these harmful web sites.
- This file does not block all harmful websites, rather it blocks the most common known harmful sites. This file is not a cure-all and thus you should still execute caution when downloading files from the internet.
- You can still visit websites you blocked with a web proxy. To completely block websites, you may need a professional website blocker.
Things You'll Need
- A Windows Based PC
- A Custom Hosts file from http://www.mvps.org/winhelp2002/hosts.htm
Sources and Citations
- http://www.mvps.org/winhelp2002/hosts.htm (Hosts File)
- http://www.rusnakweb.com (More articles by author)
- Use 'Freeware' to block spyware - Includes information on how to use free, multiple programs to block spyware attack by host file entry.
Article provided by wikiHow, a wiki how-to manual. Please edit this article and find author credits at the original wikiHow article on How to How to Use a Hosts File in Windows. All content on wikiHow can be shared under a Creative Commons license.