Block A Website Using Host File On Windows 8

Posted by micki on November 05, 2013

Block A Website Using Host File On Windows 8

Blocking a website from visiting is a very useful ability, but why we want to block a website from visiting? There are these reasons: 1. Parents want to block their kids to visit some bad website, which include: porn website, violent website and other malicous website. 2. Many computer users want to block annoying ads website, pop-ups website, banners website, or even redirect one website to another. However, is there a way to block a website on Windows 8 and how to block a website on Windows 8? Of course, we can using Windows host file to block a website from visiting. Before we start to learn how to block a website using host file on Windows 8, let us make a brief describing about what is Windows host file.
 
What is the Windows host File?
 
The Windows host file is just like any other computer file that is used by the operating system to map hostnames and domain names on to their corresponding IP addresses.
 
In other words, when you type “facebook.com” on the address bar of your browser, the Windows 8 operating system will look for the host file to see if it contains the corresponding IP address for the domain name you typed (facebook.com). In case if no entry is present in the host file, the request is then passed on to the DNS (Domain Name System) server to obtain the IP address. In fact, the file name of Windows host file is 'hosts', and there is not any extend name, the hosts file is located at "C:\Windows\System32\drivers\etc". Ok, Following is step by step tutorial about how to block a website using host file on Windows 8 operating system.
 
Block A Website Using Host File On Windows 8
 
1. Open the hosts file, which is often located at "C:\Windows\System32\drivers\etc", by Windows notepad program and select all to copy.
Original Content Of Windows 8 Hosts File
 
2. Create a new hosts file on the Windows desktop, and paste the above content to the new hosts file.
 
3. Now let us assume that you want to block the sites Facebook and Youtube on your computer. For this all you have to do is add the following records to your hosts file:
Block A Website Using Windows 8 Hosts File
 
4. Copy the new hosts file to it's original position(C:\Windows\System32\drivers\etc).
 
Ok, after completed these steps, you will can not visite Facebook and Youtube.
 
It is very easy to block a website using host file on windows 8, but this ability has a serious flaw. When you want to block other computer user to visite some websites by this way, they can change the hosts file to pass through your setting. So, if you want block others to visite some websites, you need a professional utitlity. You can try Isurveillancesoft Keylogger for free, there is a password protected 'Website Black List', it allows you to block others to visit spedified websites. You can try it for free by clicking the following button.
Block A Website Using Host File On Windows 8

Editor's Picks