If your Windows hosts file has been deleted or corrupted, or to reset the hosts file to default, simply copy and paste the following text into your hosts file.
If your hosts file does not exist, this can be done quickly.
If there is already a hosts file in the directory, rename it first if necessary.
Resetting the hosts file can be a useful solution if, for example, unpleasant entries have found their way onto your system due to a virus attack, or if you want to allow connections (for a short time) without making major changes to the existing contents.
It is always advisable to make a backup copy of the original hosts. A ready-made file is offered on the Download page for hosts files files.
Create a new hosts file
If your Windows hosts file has been deleted or corrupted, or to reset the hosts file to default, simply copy and paste the following text into your hosts file.
# Copyright (c) 1993-2009 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:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
If your hosts file does not exist, this can be done quickly.
- Create a new text document and paste the text from the code block.
- Save the file via "Save as" and "File type: All files (without file extension)" under the name hosts"
- Open the directory "%WinDir%\System32\drivers\etc" and copy the newly created file into the directory
If there is already a hosts file in the directory, rename it first if necessary.
Resetting the hosts file can be a useful solution if, for example, unpleasant entries have found their way onto your system due to a virus attack, or if you want to allow connections (for a short time) without making major changes to the existing contents.
It is always advisable to make a backup copy of the original hosts. A ready-made file is offered on the Download page for hosts files files.
Your opinion is important – please leave a comment!
0 Comments