Please Login or Register

How can I modify the hosts file on my PC?

Try to locate any existing hosts file on your computer:

Windows 95/98/Me c:\windows\hosts
Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
Windows XP Home C:\windows\system32\drivers\etc\hosts
Windows Vista and 7 C:\windows\system32\drivers\etc\hosts

(you need administrator access for Windows NT/2000/XP/Vista/7)

NOTE: Hosts is the name of the hosts file and not another directory name. It does not have an extension (extensions are the .exe, .txt, .doc, etc. endings to filenames) and so appears to be another directory in the example above.

CAUTION: We recommend that you back it up onto a thumb drive or into another directory on your hard drive so that you may restore it if you do not like the results, or in case something else goes wrong while you are trying to set this up. It is always better to be safe than sorry in the event of an unforeseen mishap. Please make a backup copy.

Open your hosts file in Notepad. It should look something like this when you open it:

# Copyright (c) 1993-1999 Microsoft Corp. 

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows. 

# This file contains the mappings of IP addresses to host names. Each 
# entry should be kept on an individual line. The IP address should 
# be placed in the first column followed by the corresponding host name. 
# The IP address and the host name should be separated by at least one 
# space. 

# Additionally, comments (such as these) may be inserted on individual 
# lines or following the machine name denoted by a '#' symbol. 

# For example: 

# # source server 
# # x client host localhost
You can now add addresses to your Hosts file. For example:


Once you make your changes, save the hosts file and restart your web browser.

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Can I use online forms? (Views: 1830)

Technical Support

Live Help