Jun 08, 2017 · Or maybe you just don’t want to instinctively keep clicking on Facebook or YouTube every five minutes when you should be working? No need to explain. Here’s our guide on how to block websites using the host file in Windows 10. No need for third-party extensions or anything like that – just good old-fashioned host file tweaking.

In Facebook’s case, your line in your hosts file would look something like this: 127.0.0.1 31.13.90.36 If you’re still having trouble, you might have to switch browsers. May 10, 2019 · I need to block a few websites on my home computer. Did a quick search and found out I had to work with the hosts files. So opened up Notepad, ran it as Admin and then opened Hosts and at the bottom added ' 127.0.0.1 facebook.com' then saved the file. But facebook is still opening when I go to the page. Mar 28, 2012 · Edit the Windows 7 Hosts File to Block Websites How to redirect a website through host file - Duration: 6:41. Sam Dahal 10,906 views. 6:41. How to Block facebook in windows7 all browsers

Jun 19, 2020 · Before DNS came into being in 1984, this was done through a local file on your computer called the hosts file. Back then computers weren’t connected to many other computers. At most, we may have connected to a few dozen. It was easy to keep all that information in a plain old text file. The host file lives on today. How Does The Hosts File Work?

Feb 14, 2012 · Continue to add the websites you wish to block, each prefaced with 127.0.0.1 and a space. 6. Click File, Save to commit to your changes. Dismiss any warnings from antimalware software, which may Mar 22, 2016 · The Windows Hosts file is a file that Windows uses to control and map IP addresses. By editing the Hosts file, Windows can be customized to block or redirect specific websites and even protocols that are used by programs and applications. To get started editing the Windows Hosts file, you first need to locate it. Aug 01, 2017 · How to Block a Single Website. Let’s say you want to block an individual site, like Facebook. Doing this is relatively straightforward. First, open your hosts file, then add this single line to the end of the document: 0.0.0.0 www.facebook.com. Save the document, and you will no longer be able to access Facebook in any browser.

Dec 15, 2019 · Hosts File Editor features a clean, easy to use interface. To begin using the program, populate the table with IP Addresses, Host Names, and a comment on the websites you want to manage.

Most likey the reason you can not access facebook even with the host file is that, since you added facebook.com to your dns server, it thinks it is authorative for all of facebook.com. This means that www.facebook.com , and any other address.facebook.com also is attempting to go to your server for the answer. Aug 19, 2012 · If you only save, close and re-open the hosts file you will still see the new mappings in the the file, but once you open a web browser, some of them are removed automatically from the hosts file. Two of the sites that you can't block using the hosts file are facebook.com and ad.doubleclick.net, the former the most popular social networking Mar 28, 2019 · Add the Facebook app to the block list. In order to block the Facebook app, do the following: Tap + in the bottom-right corner again. Tap the APP tab at the top of the screen. Scroll down and tap Facebook. Mar 22, 2013 · This would open your hosts file in Windows’ Notepad. Start editing at the end of the file : Press Enter to start a new line. Type 127.0.0.1.Press TAB key once. Then type the name of the site you want to block, in this case, gooogle.cn.