1) Peeking thru WINDOWS - "The Hosts File"
The first method is to modify your Hosts file to block
ad displays. How does this work? Very simply, the
Hosts file is like an address book. When you type an
address like "www.basementnoises.com" into your browser,
the Hosts file is examined to see if you have the
IP address for that site. If you do, your computer will use
that address to find the site. If not, your computer must
query your ISP’s computer for the correct address.
For most sites you visit, your computer will not have an
address and will query your ISP.
Your personal computer also has an address – 127.0.0.1,
which it uses to refer to itself. If you associate another
computer's host name with your local host IP address,
you have effectively blocked that host since all attempts
to access it will lead back to you. This is how you can
block sites using the Hosts file. You tell your computer
that the IP address of the site you want to block is your
own address. That way, your computer won’t ever leave
and go looking for the site you are blocking - which keeps
that site from appearing because the computer thinks it
has found the site and displayed it already!
To use the Hosts file to remove ads -
I) Locate your Hosts file. For Win98 users this is
usually c:\windows\, and for Win2000/NT
users it will be c:\winnt\system32\drivers\etc\ You
might see two Hosts files – Hosts and Hosts.sam,
you’ll want to use the file without the extension –
not Hosts.sam
II) IMPORTANT! Make a copy of your current Hosts file on
a floppy for backup purposes. Use this backup to
restore your Hosts file if you decide later to receive
ads.
III) Download the current Hosts file listing from Stephen
Martin’s site at http://www.smartin-designs.com As of
this writing, his file contains the addresses of 4054
ad servers that will be blocked.
IV) Copy the contents of Stephen’s file, add the
contents to your Hosts file, then close and save.
V) Open a new browser window, and surf as normal, no ads!
(depending on the browser you’re using, you may have
to clear your cache and/or reboot for complete the
process)
Now some notes:
I) This method has been shown to work properly on the
majority of users' PC's. I cannot, unfortunately, guarantee
that it will work on all PC's. I hope that it will work for
you, but I must urge you to make backups of your system
before you try anything new to prevent the loss of your
data.
II) While this process should work equally well for home
users and business users, business users should consult
with their IT department before modifying their Hosts file.
III) Netscape takes longer than Microsoft's Internet Explorer
to accept that it will not be getting an image from the
ad servers you have blocked using the Hosts file. This
means that Netscape will pause longer before it loads
the page, because it is expecting something to come from
the ad server. Also, Netscape would expect something to
come from any server you choose to block in the Hosts file.
To remedy the Netscape speed problem, I suggest that you
run the eDexter progam which can be found on Gorilla’s
site. (see below) eDexter will send images of its own
from the hard drive in order to make the browser think it
received the ad or other item it was looking for from the
site you blocked. This will make the pages load much
faster and you still won't be communicating with the
blocked servers.
IV) ANY SITE IN THE HOSTS FILE WILL BE UNAVAILABLE.
You will undoubtedly at some time in the future attempt to
access a site and see a “Cannot Find Server – Page cannot
be displayed” error message. If this happens, and you *do*
want to visit this site, you will have to modify your HOSTS
file and remove/comment out that site. To comment out a
site in your Hosts file, place a # sign in front of the
127.0.0.1 for the site you want to access, then resave the
Hosts file.
Acknowledgement:
The information for this article is condensed from Gorilla
Design Studio’s site at http://www.accs-net.com/hosts/ and
used by permission. I urge you to visit Gorilla’s site for
further clarification if needed.
Update: While much of the above still holds true, this site should probably be your next stop in learning More about the Hosts file.
Return
to top
|