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. I can easily write to the hosts file using cmd but would rather powershell. Thanks for all your help.

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. Sep 02, 2012 · Though, I prefer using manual way to block Facebook or similar sites. It may be little geeky for many, but I’m sure you might not like the idea to open your Windows hosts file regularly to play block and unblock game. In the manual method, you will be making some changes to the ‘hosts’ file present in your computer system, by using a notepad. When you block Facebook with the Hosts file, users can access Facebook through anonymizers. He/she can visit an anonymizer, enter the needed URL, and access the restricted website on its behalf. The problem is that you can block all thousands of anonymizers. The hosts file is one of the interesting and useful feature of both Windows and Linux operating systems that provides many handy options in addressing network nodes. For instance, you can use the hosts file to block annoying ads, pop-ups, banners, porn sites, or even redirect one website to another. Block Twitter/Facebook in your /etc/hosts. GitHub Gist: instantly share code, notes, and snippets. Block facebook tracking host file . GitHub Gist: instantly share code, notes, and snippets.

Jul 03, 2017 · To access the hosts file in Windows 7 you can use the following command in the Run Line to open notepad and the file. notepad c:\windows\system32\drivers\etc\hosts. Once notepad is open you can edit the file. In this example we will block Facebook. To do this just enter in the following after the # mark. 0.0.0.0 www.facebook.com

The hosts file is one of the interesting and useful feature of both Windows and Linux operating systems that provides many handy options in addressing network nodes. For instance, you can use the hosts file to block annoying ads, pop-ups, banners, porn sites, or even redirect one website to another. Block Twitter/Facebook in your /etc/hosts. GitHub Gist: instantly share code, notes, and snippets. Block facebook tracking host file . GitHub Gist: instantly share code, notes, and snippets.

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.

Nov 15, 2019 · The Windows HOSTS file functions like a local copy of a DNS server, so knowing how to edit it might come in handy if you want to make custom domain redirects, block websites, or remove malicious entries set by malware. That said, you might run into permission errors and other problems when you make changes to this file in some versions of Windows. Jan 22, 2014 · Sometimes, the computer admin can edit the hosts file to block Facebook. He/she adds the website domain name to the block list in host file. In that case, you can get access to Facebook by the IP address instead of the domain address. Putting the IP address in your browser directly, will bypass the barrier from the host file. We're working to update facebook.com and the Help Center. If you don't see instructions for the version you're using, learn how to switch versions or report a problem.