(Honestly, I didn’t plan to get a reply — I just used that site name as an example!

I really don’t know or care what that site has, and I do not imply that it is a bad site in any way. YMMV, so browse at your own risk.) Note: Some Anti-Virus programs may monitor your HOSTS file.

Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. For example, this is how my local Hosts file looks like: The HOSTS file may present an attack vector for malicious software, and it may be modified by malicious software such as adware, computer viruses, or trojan horses.

updating host file in vista-90updating host file in vista-46updating host file in vista-51

# The IP address and the host name should be separated by at least one # space.

# # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol.

This article describes the changes and provides step-by-step instructions for sharing files and printers and connecting to shared files and printers from a computer running Windows Vista for a small-office or home office network that does not use the Active Directory® domain service.

This article is designed for IT professionals and experienced users that are familiar with file and printer sharing in Windows.

For example, lets say you wanted to prevent your computer (or someone else’s computer) from accessing a site called

In that case, one of the simplest ways to easily stop the computer from reaching that site would be to edit the computer’s HOSTS file and insert a line such as this at the end of whatever is already listed in the file: (Actually, one space is enough between the IP address and the FQDN of the target.) Before making that change, if you ping get what you see in the image below.

Windows will ask for Administrator permission; the changed HOSTS file will replace successfully the original.

In this method, you can use Notepad and open it with administrative credentials, also known as elevated permissions.

Abstract Differences in File and Printer Sharing in Windows Vista Configuring File and Printer Sharing Behavior in Windows Vista Sharing a Folder or Printer in Windows Vista Accessing a Shared Folder or Printer with Windows Vista Common Questions with Windows Vista File and Printer Sharing For More Information For information about file and printer sharing in Windows 7, see Networking home computers running different versions of Windows and File and printer sharing: frequently asked questions.

Microsoft® Windows Vista™ has made some important changes to the way that file and printer sharing works.

The Windows Vista network location types are the following: For small office or home office networks, you want to make sure that the network location type is set to private.