1. Home
  2. Computing & Technology
  3. Wireless / Networking

hosts file

By Bradley Mitchell, About.com

Definition: A hosts file is a list of computer names and their associated IP addresses. Hosts files are used by Microsoft Windows and other network operating systems as an optional means to redirect TCP/IP traffic in special circumstances. These files are not required to use ordinary network and Internet applications.

The two common reasons for an individual to set up a hosts file are:

    1. To prevent access to undesirable Web servers (such as those offering tacky advertising or inappropriate content)

    2. To set up private, easy-to-remember "shortcut" names for servers on a local network
In Windows, the hosts file is a simple text file typically named hosts (or occasionally, hosts.sam). It is normally located in the system32\drivers\etc folder. Linux, Mac and other operating systems each follow a similar approach but with different conventions for naming and locating the hosts file.

A hosts file is designed to be edited by a computer administrator, knowledgeable user or automated script program. Computer hackers may also attempt to modify your hosts file, which has the effect of redirecting requests intended for standard Web sites to other locations illicitly.

Also Known As: HOSTS
Hosts File - Related Topics
Bradley Mitchell
Guide since 1999

Bradley Mitchell
Wireless / Networking Guide

Explore Wireless / Networking
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Wireless / Networking
  4. Networking Basics
  5. A-Z Networking Terms
  6. H
  7. Hosts File - Windows Host Files>

©2009 About.com, a part of The New York Times Company.

All rights reserved.