Home / Articles / Windows / Windows 7 / Reset the contents of the file hosts

Reset the contents of the file hosts

Reset the contents of the file hosts
Reset the contents of the file hosts
  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 5/5 (1 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.

File hosts - is an important part of the network component of Windows, it stores a database of domain names that is used to translate them into network addresses. Very often, viruses, trojans and other malware modify the contents of this file to redirect the user to infected websites or block access to, for example, update servers for antivirus software, Windows Update, etc. Further it is explained how to restore the contents of this file by default.

1. First you need to open "System folder" containing the file hosts, or you can simply type in the search bar of "Start menu" following:


For 64-bit versions of Windows, additionaly you may also look here:


2. Then all you need to do is to open the hosts file using Notepad or any text editor and replace it with the following content:

# Copyright (c) 1993-2006 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# 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.
# For example:
# rhino.acme.com # source server
# x.acme.com # x client host

# localhost name resolution is handle within DNS itself.
# localhost
# ::1 localhost
 If you do not desire to go through the above steps manually you can use a utility from Microsoft, available at the link below.

Read also

Disk cleanup in Windows 7

Disk cleanup in Windows 7

Log in or create a user account to post a comment.


Quick navigation

General navigation