Stop Spyware

What is a Hosts file? How can it prevent spyware from "calling home" with your personal information? Learn how the Hosts file works and how to use it to stop spyware.

1. How the Hosts File Works

The Hosts file is a sort of web address book inside the Windows folder of your hard drive. It loads into system memory at each startup, where it cross-references saved domain names to IP addresses.

The need for cross-referencing is because, the Internet only works with numeric IP addresses.

IP addresses are in the form of a block of numbers arranged in four groups, something like this: 125.0.48.220, where each group may be from 0 - 255.

Somewhere in the system there needs to be a cross reference between the two. Cross-references between domain names and IP addresses are found on various domain name servers (DNS) distributed throughout the Internet.

However, when you type a domain name into your browser search box, your computer first looks for the IP address in your Hosts file. Then, if Windows finds the domain name listed in your Hosts file, it will not bother to look it up on any external domain name servers. (Keep this fact in mind.)

Originally, the Hosts file came about because, before there were high-speed Internet connections, it was much faster to look up an IP address if it was already stored on your local machine.

2. The Hosts File as an Anti-Spyware Tool

With faster computers and high-speed Internet there is really no need for a locally stored cross-reference.

At the same time, malicious sites just keep on increasing! They often work by embedding a disguised link inside an otherwise innocent looking web page. If you happen to click on - or sometimes even mouse over - that link, the spyware "calls home" and sets up an ad server, a data miner, a hit counter or some other intrusion of your privacy.

Now back to the Hosts file: in its newest configuration, your Hosts file is an excellent spyware blocker.

Now, when you discover a malicious domain, you can add it to your Hosts file, cross-referencing it to a false IP address that connects only to a black hole inside your computer. The spyware "thinks" it is calling home, but the call goes nowhere.

3. The Structure of a Hosts File

The original Hosts file looks something like this:

# start of your favorite sites - original use for a Hosts file
123.45.67.89 willynillysite.com
51.126.0.189 moms-apple-pie.org

Normally, Hosts files are much larger than this. (Lines beginning with the pound # sign are comment lines which the computer ignores.)

The modern Hosts file used as a spyware/adware denial tool that looks something like this (with 127.0.0.1 localhost always as the first line):

127.0.0.1 localhost
# start of blocked sites - modern use for a Hosts file
127.0.0.1 sleazyadvertising.net
127.0.0.1 bannercraze.com

Notice that these IP addresses are all the same: 127.0.0.1 -this points only to your own local computer.

An infected web page could try to connect your computer to bannercraze.com, for instance. As usual, your browser looks up the IP address, which in this case, it finds in the Hosts file. Since the IP address resolves to 127.0.0.1 in the Hosts file, the call cannot go out.

(Remember: If a domain name is stored in your Hosts file, Windows will not bother to look it up on any external DNS servers.)

A comprehensive Hosts file can also speed up downloading of web pages because you will not have to wait for targeted ads and other spurious items to load.

Of course, simply maintaining a Hosts file is not a magic cure-all for every evil on the Internet, but it does provide an additional, quite effective defense mechanism.

But there has to be a catch, right? There is. In fact, there are several catches. You will have to:

a) recognize each piece of malware
b) look up its domain name
c) update your Hosts file for each new intruder

It becomes a never-ending task because these companies are constantly adding new domain names to stay ahead of us.

Take heart. There are several comprehensive Hosts files that you can download and use at no cost. To keep these files up to date you will have to download the latest versions regularly. One available source is: someonewhocares.org

By far, the easiest way to maintain an effective Hosts file is to let a good anti-spyware program do it for you. A very popular, free utility is SpyBot - Search & Destroy. It searches the web for problem domains and then "inoculates" your computer by including them in your Hosts file.

To learn more about the Hosts file, search on the term in your Internet browser. There are over 30 million search results for "Hosts file".

 

 

More Articles

 

 

Search This Site

 

Related Products And FREE Videos





 

More Articles


How To Protect Your Computer From Malware

... software can catch every threat. The free version of Ad-Aware by Lavasoft is also a good choice to supplement the primary anti-spyware software. It is not as robust as Spyware Doctor 2007 and Spy Sweeper 5.2 but it doesn't offer real-time monitoring in free version so it doesn't take many resources from ... 

Read Full Article  


Web Surfing Security

... disconnect from the Internet and do a full scan of your computer with the updated antivirus. Always make sure your antivirus is actively protecting your computer. 2) Clean your computer cache and your temporary files. You can pick up software for this at CNET: http://www.cnet.com 3) Clean your history ... 

Read Full Article  


Spyware Blocker

... computer system to remove any spyware invaders that may be present is a good first step to protecting yourself from potential threats on the Internet; however, it simply is not enough. All too often, spyware components can come back just as easily after they are removed. To provide future protection for ... 

Read Full Article  


Manage Your Cookies

... cookie manager lists your cookies alongside check boxes. Recognize a cookie as one to keep? Set a check in its box. When you have gone through all the cookies, you can delete all the unchecked ones with a single click. Next time, you will have a base on which to build: all the checked cookies were previously ... 

Read Full Article  


Keep Your Computer Secure And Virus Free

... keep out of the dark side of the web and the odds of keeping your computer clean shifts decidedly in your favor. 4. Watch out what you download Spyware is embedded in a lot of software on the Internet - especially those related to ripping, converting and playing music and videos. That free MP3 player ... 

Read Full Article