Hosts” file is an important system file in Windows which maps hostnames to IP addresses. Its stored in “%windir%/System32/drivers/etc” folder in Windows 32-bit editions. In 64-bit editions, it might be also stored in “%windir%/SysWOW64driversetc” folder.

The hosts file’s structure is very simple. It contains text lines containing IP address followed by the hostname.

Sometimes this hosts file is hijacked by viruses, adware, spyware or trojan horse software and is modified to redirect your web browser to various websites containing malicious code. It might also block security websites and Windows Update website in your system so that you can’t install security updates and virus definitions in your operating system.

If you are also facing a similar problem, you should check the hosts file and make sure it contains the default values. To reset hosts file to default, you can follow these simple steps:

1. In RUN box type the following and press Enter:

%windir%/System32/drivers/etc

2. Now you’ll see a file with the name hosts in etc folder.

hosts file3. Open the file in Notepad and replace its content with following text:

For Windows 7, Windows 8, Windows 8.1, & Windows 10:

For Windows Vista and Server 2008:

For Windows XP and Server 2003:

4. Save the file and you have reset the file to default.

NOTE: If you don’t want to do it manually, you can download an automatic Fixit tool released by Microsoft to reset Hosts file to default:

What Do You Think on This ? Say Here