Search
Recommended Products
Related Links


 
 

 

 

Informative Articles

COMPUTER COURTESY
The tips that follow should help you to write e-mail that will be well received every time The links in this PDF are 'live'. You can search keywords by going to Edit, Find, type word and click Next Pay attention to punctuation, spelling, grammar...

Computer Hacks – Quacks Looking for Cracks
Who are these people? If they were profiled by the FBI or some law enforcement agency what would the profile look like? What age group would they fall into and what sort of background would they come from? In August of 2003 an 18 year old teen was...

Computer Networking Consultants
Computer networking consultants can help your organisation design and install the ideal network for its needs. Getting the right computer network – which is linking all the computers so they can share information, use the Internet and devices like...

How to create an Outlook Express Backup
Most Windows users should be familiar with Microsoft Outlook Express. This email program is usually installed with the Windows operating system and is probably among the most commonly used email program today. While using Outlook Express is fairly...

How to Search your PC with Google Desktop
In this era of Internet, most people are frequent users of computers. Many of us use computers through out the day, accumulating morasses of information in various formats, which include email, digital photo, word document, spreadsheet,...

Image conversion In Computers
Image Conversion In Computers JPEG, GIFF/JIFF, BMP, and TIFF are the most commonly used formats for storing still image files such as photographs, graphics, and drawings. JPEG stands for Joint Photographic Experts Group and is a standard for image...

Laptop or Desktop - which computer to choose?
Traditionally, laptop computers were bought by people who had to be able to take their computer with them when they left the office, such as the salesman visiting a customer. It always used to be the case that buying portability meant a trade-off...

Transcendental function programming
Programming and chess have much in common. Those who delve deep into the mysteries of chess will have discovered that a single move can alter the entire game. The ramifications go deep. Each subsequent move (or "ply" in the jargon) is conditional...

Trouble-shooting Hard Drive Problems - Part 1
The following article is the first in a series that helps solve many of the common boot problems with hard drives. The article explains how to verify the drive functionality, determine the correct setup for the drive, and repair problems with the...

What is Contract Programming? An Alternative to the Conformity of Everyday Employment
What is contract programming, you ask? Well, when companies need specific computer programming expertise, for temporary periods of time, they generally hire a contract programmer or an employee of a consulting firm. Contractors almost always have...

 
 
 
Use the HOSTS File to Block Web Sites

----------------------------------------------------------
Permission is granted for the article below to forward,
reprint, distribute, use for ezine, newsletter, website,
offer as free bonus or part of a product for sale as long
as no changes are made and the byline, copyright, and the
resource box below is included.
----------------------------------------------------------
Use the HOSTS File to Block Web Sites

By Stephen Bucaro

When you type a domain name into your Web browser, Internet
Protocol contacts a computer that is a domain name server
to look up the IP address of the Web site. In the early
days, the Internet didn't need domain name servers. Every
computer had a file named HOSTS that listed the domain name
and IP address of the systems connected to the Internet.

Even today when your Web browser needs to resolve a domain
name to an IP address, it first looks for a file named
HOSTS on the local computer. In Windows NT, the HOSTS file
is located in c:windowssystem32drivers. In Windows 9x,
the HOSTS file is located in c:windows.

Because the HOSTS file is no longer required, you may not
find it on your computer. Instead, you might find a file
named HOSTS.SAM, the SAM extension meaning "SAMPLE". You
might also find a file named LMHOSTS. The LMHOSTS file was
used to resolve NetBIOS names to IP addresses.

The HOSTS file is simply a text file with a list of IP
addresses and their respective domain names. You can open
the file with Windows Notepad. The HOSTS file may list only
one IP address, the loopback address, as shown below.

127.0.0.1 localhost

To block a Web site, enter an IP address that is

 


not
allowed for the Web. For example, any IP address with the
first digit of 0 would be on the local network. Any IP
address with the first digit of 127 is looped back. Then
map that IP address to the domain name that you want to
block.

For example, suppose you want to block a porn site that
your teenager has been visiting, you might add an entry
like the one shown below.

127.0.0.2 www.pornsite.com

Banner ads are usually hosted on an advertiser's domain and
linked to sites all over the Web. Suppose you want to block
annoying banner ads displayed at a site that you visit
frequently. You might add an entry like the one shown below.

127.0.0.3 www.adserver.com

Then when a file from that domain name is requested,
instead of the porn site or the banner being displayed, the
browser will display the message "The Page Cannot be
Displayed".

When you save the HOSTS file after editing, make sure that
the file name does not have an extension. Sometimes Windows
Notepad adds the extention .txt.

The HOSTS file is a quick, easy way to block access to a
Web site. But if you use this method to block a porn site
that your teenager has been visiting, make sure they don't
find this article.
----------------------------------------------------------
Resource Box:
Copyright(C)2002 Bucaro TecHelp. To learn how to maintain
your computer and use it more effectively to design a Web
site and make money on the Web visit
http://bucarotechelp.com
To subscribe to Bucaro TecHelp Newsletter Send a blank
email to mailto:bucarotechelp-subscribe@topica.com
----------------------------------------------------------

About the Author

None