|
Detailed Instructions:
(1.)
Download the hosts.zip file from the Get Hosts File
page (or click
here) and uncompress it.
The file above comes in the
traditional 127.0.0.1 format. If you would prefer to have the file
in the 0.0.0.0
format, please download this
file instead.
If you want
to make your own Hosts file instead of using the example above, then
download
this and follow the instructions inside of it for adding entries to the
file and for where to place it.
If you use
Windows 2000 or XP Pro,
(2.)
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
(you may
need administrator access for Windows NT/2000/XP)
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.
You will need to open it using note pad and save it with no extension.
If you do
not have a Hosts file already, you may simply extract the hosts.zip
file, and place it in your c:\windows\ directory (for Windows
95/98/Me) or your c:\winnt\system32\drivers\etc\ directory (for
Windows NT/2000/XP Pro). XP Home may have the file in
c:\windows\system32\drivers\etc\. If you extracted
the hosts.zip file to the correct directory, you may skip to step
(4.), otherwise proceed to step (3.)
CAUTION: If
you find that you already have a "Hosts" file on your computer, (which
there usually is) I
recommend that you back it up onto a floppy or into another directory on
your hard drive so that you may restore it if you do not like the results
of the ad-blocking, 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. So Please make a backup copy.
(3.)
You only need to perform this step if you find that you have
an existing Hosts file:
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:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
If your
Hosts file looks exactly like that, then you may simply make a backup copy
of it and then delete it. After deleting it, extract the
hosts.zip
file into either your c:\windows (for Windows 95/98/Me) or your
c:\winnt\system32\drivers\etc (for Windows NT/2000/XP Pro) folder
and proceed to the next step. Windows XP Home may use the
c:\windows\system32\drivers\etc\ directory.
If other
data is in your Hosts file, you will definitely want a backup before you
proceed, so make one now. If your Hosts file looks like the one above, but
has extra entries, you will need to do a little more work.
If you find
any extra entries in your existing Hosts file, you will want them in your
new Hosts file as well. The solution is to make a backup of your current
Hosts file, and then extract the hosts.zip file to the folder that
contained your existing file. Next, you will want to open the new Hosts
file with a text editor (if you have Windows 95/98/Me/NT, the list might
be too big for Notepad and will open in WordPad - if you use Windows
2000/XP, this shouldn't happen).
After you
open the file with a text editor, copy the lines from your backup Hosts
file into your new Hosts file. You will only need to copy the lines that
start with "127.0.0.1" or another similar IP number, and add them to the
bottom of your new list. Save the file in your text editor. You will want
to make sure that the file is saved without an extension. You can do this
by typing this into the "save as" line when you save the file:
"Hosts"
Make sure
you use the quotes to keep the file from being saved with an extension
(like .txt). If you find the file has an extension, you will need to get
rid of the extension by renaming the file in Explorer to simply "Hosts".
(4.)
If you have a proxy server:
You
should only need to do this step if you use a proxy server. If you don't use a proxy server you can skip
to step (5).If your hosts file does not seem to be working for you and you
skipped this step, try coming back and completing this process.
In IE -
choose tools: internet options: connections and choose your connection. If
you are using a proxy server, make sure the box called "bypass proxy
server for local addresses" is checked.
(5.)
Use your browser as you normally would.
You may
test your configuration by trying to visit a site that is listed in the
Hosts file. Type in a site that you want to test "www.TheSiteName.com" and if your
browser can not access it then you are in business! If you have problems,
try closing your browser and reopening it, or try emptying your browser's
cache before trying again. Also, you may need to reboot in some cases. And
you may have to delete the
cookies.
Another
testing method is to see whether or not ads are being blocked on most of
the sites you visit. Of course, not every ad will be blocked because of
the restrictions I listed above. You will be able to tell this by the fact
that you will see empty boxes in the spots you used to see ads.
(6.)
If you would like to keep your Hosts file updated:
New ad
servers spring up every day. If you come across one, copy the domain names
and then paste the addresses into your Hosts file using the methods in the
steps above.
(7.)
What
can you do if Hosts isn't working under Windows 2000 or XP Pro?
First,
you should try using "127.0.0.1 localhost" at the top of your hosts file.
If that doesn't work, try converting the entire Hosts file from 127.0.0.1 to
the 0.0.0.0 format.
Those
of you who use Windows 2000/XP Pro and use the very large version of the
Hosts file may experience system slowdowns and slow connections. Most
often, this is noticed by those with dialup connections, but may occur
with broadband connections as well.
Windows
2000/XP Pro also includes a service known as the DNS cache. You can locate
it in your services listed as "DNS Client". To use Hosts you may
need to stop and disable this service. Some machines seem to run Hosts
without disabling this service. It is safe to turn it off and disable it.
You will likely never notice it is gone. As far as I can tell, no other
Windows operating system offers such a service.
(8.)
Remember in case you missed this in earlier
explanations:
If a site
is in your Hosts file, and has its address set to 127.0.0.1, that site
will not be able to be loaded from the web. This is how advertisements are
kept out, but it also means you may not be able to view a site you want to
see. To view a site that seems inaccessible - look in your hosts file for
the "www.ThatSitName.com" entry and remove that line.
You can do this with Notepad or any other text editor. Save the file when
you are done. You will then be able to view that site.
If you
would like to completely disable your Hosts file, rename it to
"Hosts.txt". When you want to use it again, change it back to "Hosts". *
Rename the file by opening a DOS window from your Start Menu and typing
the following:
(9.) To disable Hosts from a DOS window:
Windows
95/98/Me
cd windows (press enter)
rename hosts hosts.txt (press enter)
(10.)
To Enable Hosts from a DOS window:
Windows
95/98/Me
cd windows (press enter)
rename hosts.txt hosts (press enter)
You can
also use this to rename your Hosts file if it accidentally has an extension
on it.
In Windows
NT/2000/XP Pro, substitute c:\winnt\system32\drivers\etc for the
c:\windows in the instructions. In Windows XP Home, you may need to
substitute c:\windows\system32\drivers\etc for the
c:\windows in the instructions.
NOTE:
*Do not do
this if you use a proxy server, or the proxy will not work. In that case,
you would have to delete all entries from your "Hosts" file except for the
proxy entries to get the equivalent of disabling the Hosts file. To
restore the ad-blocking Hosts file, you would then have to paste all the
deleted entries back inside "Hosts".
|