It turns out we can, and we can block Facebook completely by editing the hosts file. In this guide we’ll be adding Facebook-owned domains to the hosts file, which will block them from our system.
Write the following website after the IP address: facebook.com; 5. It is also possible to block the mobile version of the webpage in order to steer clear of entering the site. Write the usual Facebook address and add an “m.” before it; 6. Save the new “Hosts” file instead of the old one: Press the “File” button and choose “Save as”; To block a specific website (for example, facebook.com), open the hosts file (with the administrator privileges) and add the strings like these to it: 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com Nov 12, 2015 · Hello Spicers - I'm wondering if anyone has a powershell script handy that will write to the hosts file to block www.facebook.com AND if possible unblock it. Example - run it once - blocks site - run it again - unblocks site. 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. Jan 05, 2019 · So, instead of facebook.com sending you to 31.13.71.36 (or whatever Facebook’s IP is when you read this article), you can have your browser send yourself to your own computer — 127.0.0.1
If there are only a couple websites to block, the easiest method is to add these sites to /etc/hosts with an IP address of 127.0.0.1. You can also add an IP tables rule to block packets destined to such a site. Bear in mind that major web sites will have 3 or 4 IP addresses served up in a round robin fashion. This is an easy form of load balancing.
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.
Hosts Block. 190 likes. Protect your online activity against popups, adware and other malware with this simple and powerful MDL or MVPS hosts files updater.
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. Write the following website after the IP address: facebook.com; 5. It is also possible to block the mobile version of the webpage in order to steer clear of entering the site. Write the usual Facebook address and add an “m.” before it; 6. Save the new “Hosts” file instead of the old one: Press the “File” button and choose “Save as”;