Dear Friends,
In Windows, hosts file is an important file which maps hostnames to IP addresses. It is a simple text file that contains text lines containing IP address followed by the hostname. It is usually found in %windir%\System32\drivers\etc\ folder.
It is sometimes hijacked by malware to redirect to website that contains malicious code.
Steps-
(1) Navigate to Start then RUN dialog box.
(2) Type following text and press enter.
(1) Navigate to Start then RUN dialog box.
(2) Type following text and press enter.
%windir%\System32\drivers\etc\
(3) In etc folder, you will find hosts file.
(4) Open the file with notepad and replace its contents with the following text
For Windows 7:
(4) Open the file with notepad and replace its contents with the following text
For Windows 7:
# 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:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handle within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
For Windows XP and Server 2003:
# Copyright (c) 1993-1999 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
127.0.0.1 localhost
(5) Save the file to set it to default.
That’s all.
-------------------------------------------------------
Source- http://adminkunal.blogspot.com
No comments:
Post a Comment