Sep 19, 2019 · Suppose, you want to block Facebook and YouTube, then here is how you need to type it: Note: Before editing the host’s file it is very important to make a backup of the file. To block Facebook, type this: 127.0.0.1 www.facebook.com; To block YouTube, type this: 127.0.0.1 www.youtube.com

Sep 02, 2017 · Blocking various websites: Besides Facebook and Twitter, you can block other websites too. What is a Hosts file? The hosts file is used to map hostnames to IP addresses. You can locate the file at : C:\Windows\System32\drivers\etc\hosts on your Windows OS. Block Facebook and Twitter. Step 1: To access the hosts file Jun 08, 2017 · However, there are tens of thousands of undesirable (ads, malware, etc) sites that computer users may want to block. To do it manually is tedious, time consuming and inaccurate. Sites such as hpHosts Online provide ready-made, regularly updated, downloadable for free hosts files. These hosts files can be used on any Windows, Linux or Mac OS system. 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. 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. Many users can't modify HOSTS on work computers, etc but can install an extension. Hosts file is a real pain to disable/enable, at least quite a bit worse than clicking one button in your browser. I do something very similar to hosts file (at router level rather than os), but there are a few drawbacks over an extension. When I saved the text in the code block as /etc/hosts, it did block Facebook in Safari. Does your /etc/hosts use CR line endings, or have you tried moving other entries above the IPv6 entries? – Lri May 30 '13 at 18:37

Because of this to effectively block the site, you must also block all hosts. This would usually mean: 127.0.0.1 facebook.com. 127.0.0.1 www.facebook.com" check the link for more details. Also i you trying to block multiple sites, its better to have a proper software like proxy server or firewalls which can block access to particular sites.

Windows - redirect domain request to localhost without modifying etc/hosts 73 Why does Microsoft Edge open some local websites, but not others, where the domain name is routed to 127.0.0.1 in hosts file Block Facebook helps you protect your privacy by blocking all URLs associated with Facebook (including Facebook's tracking pixels). It works in two ways: > When you try to visit any of the URLs associated with Facebook, for example, facebook.com, developer.facebook.com, apps.facebook.com etc, it blocks the website from loading and redirects you to a locally hosted page with a message that says Type the following line exactly as it appears: notepad c:\WINDOWS\system32\drivers\etc\hosts. After you have typed the text, press the Enter key. After you have typed the text, press the Enter key.

Mar 06, 2012 · Block Facebook Using The Hosts File. If you’re running the Windows Operating System on your computer, you can edit the “Hosts” file to block website requests before they even get to the router. Your computer consults what’s in the Hosts file before going out on the Internet to find the address, so sites blocked in the hosts file are an

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. 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. Many users can't modify HOSTS on work computers, etc but can install an extension. Hosts file is a real pain to disable/enable, at least quite a bit worse than clicking one button in your browser. I do something very similar to hosts file (at router level rather than os), but there are a few drawbacks over an extension. When I saved the text in the code block as /etc/hosts, it did block Facebook in Safari. Does your /etc/hosts use CR line endings, or have you tried moving other entries above the IPv6 entries? – Lri May 30 '13 at 18:37 Feb 14, 2012 · Want to block all users of a Windows PC from opening certain websites, regardless of the browser they use or the time of day? You need only make a few simple additions to the Windows hosts file.