Another common usage of HOSTS file is to block websites including advertisements and web trackings by mapping it to a localhost which is 127.0.0.1 or to a non-routable 0.0.0.0 IP address. Other than using the HOSTS file for good purposes, some malware uses it to block the infected computers from accessing security based websites.

Hosts file. The Hosts file is an extension-less system file that is used to map host names or website domain names to the IP addresses. You do not require a program to run the Hosts file. It boots with the computer, and is already working for you. Hosts file overrides the DNS settings of the websites mentioned in it on that computer. 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 Mar 21, 2018 · ##### # To Completely Block Facebook # Add these entries below to your hosts file # # Your hosts file Location: # Linux, Unix and Mac OS X -> /etc/hosts # Windows XP, Vista and Windows 7 -> C 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

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.

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 Mar 21, 2018 · ##### # To Completely Block Facebook # Add these entries below to your hosts file # # Your hosts file Location: # Linux, Unix and Mac OS X -> /etc/hosts # Windows XP, Vista and Windows 7 -> C

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.

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.