Internet, Networking, & Security Home Networking What Are Windows Hosts Files? by Bradley Mitchell Writer An MIT graduate who brings years of technical experience to articles on SEO, computers, and wireless networking. our editorial process LinkedIn Bradley Mitchell Updated on March 11, 2019 Tweet Share Email Home Networking The Wireless Connection Routers & Firewalls Network Hubs ISP Broadband Ethernet Installing & Upgrading Wi-Fi & Wireless 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. Also Known As: HOSTS What Hosts Files Are Used For The two common reasons for an individual to set up a hosts file are: To prevent access to undesirable web servers (such as those offering tacky advertising or inappropriate content)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 websites to other locations illicitly. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Email Address Sign up There was an error. Please try again. You're in! Thanks for signing up. There was an error. Please try again. Thank you for signing up. Tell us why! Other Not enough details Hard to understand Submit