Open the hosts file using the notepad. 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 HOSTS file in Windows (as well as in other operating systems) maps the domains to their respective IP addresses and can be used to redirect or block.
Using Windows’ HOSTS file is a quick and painless way to block websites (such as Facebook, ad networks, or malicious websites) on your machine.
![how to block facebook using the hosts file how to block facebook using the hosts file](http://www.c-sharpcorner.com/UploadFile/7e39ca/how-to-block-websites-in-windows-8/Images/Modifye-HOSTS-File-Windows8.jpg)
To prevent your kids from accessing certain websites, the easiest way to do it is via the Windows Hosts file. It is free and works immediately. Want to watch this again later? Sign in to add this video to a playlist. Copy and past below code into your windows host file # block facebook 127.0.0.1. Eimear February 12, 2014 at 3:49 pm. our company uses the hosts file to block facebook. unfortunately, this means that the facebook like button on our website doesnt. 3. Select Run as Administrator. 4. Click Yes on the popup window. Figure A Location of hosts file. Now that Notepad is opened with administrative rights, the.
![how to block facebook using the hosts file how to block facebook using the hosts file](http://tutorials.cybercon.com/wp-content/uploads/2013/05/6-win8-hosts-edit.png)
![how to block facebook using the hosts file how to block facebook using the hosts file](http://i70.photobucket.com/albums/i98/viper3773/mc%20cs6/installation/30.png)
![how to block facebook using the hosts file how to block facebook using the hosts file](http://cariblogger.com/assets/img/2010/07/how-to-block-facebook-3.jpg)
![how to block facebook using the hosts file how to block facebook using the hosts file](http://aitnews.com/wp-content/uploads/2014/07/HowToBlockSites.png)