Jun 08, 2017 · For today, however, we’ll just focus on the blocking. Block Websites Using Your Hosts File. All this may sound kind of complicated, but it really isn’t. First, navigate to the System32 directory of Windows, which by default should be “C:\Windows\System32\Drivers\etc\.” Create a backup of your hosts file in case you do something wrong.

Sep 28, 2011 · If MSE is undoing a host setting, one option is to switch to blocking the login page, or other sub-pages, for the site you want to block. If you search the web, you will find lists of subdomains used by different sites, and you can try that. However, if some malware starts using the same blocks in the future, MSE may begin undoing those changes. Hosts File to Block Facebook from my Machine. GitHub Gist: instantly share code, notes, and snippets. Block facebook tracking host file . GitHub Gist: instantly share code, notes, and snippets. Open the duplicate file and perform the same additions as before: on each line, followed by whatever domains you want to block. Once you’ve made your additions, save the file and copy it To Block Websites using Hosts File in Windows 10, Open the Start menu, and go to Windows Accessories. Right-click the Notepad app and select More - Run as Administrator. In Notepad, click the File menu - Open, or press the Ctrl + O keys. Do take note that blocking just facebook.com using the HOSTS file does not block www.facebook.com. Depending on the website, Facebook automatically redirects the non-WWW version to the WWW, while Twitter does the opposite by redirecting the WWW to the non-WWW version of the domain name.

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: www.facebook.com; To block YouTube, type this: www.youtube.com

Mar 30, 2011 · By adding entries to the Windows hosts file, you can block access to specific unwanted or known malware-infested websites. Jack Wallen explains how it works.

The goal of this question isn't to simply let me block Facebook, I'd like to understand why the /etc/hosts file isn't working. – seanieb Feb 4 '13 at 20:00 @seanieb He has linked this answer to another answer. Jun 19, 2020 · The hosts file allows the computer to look up other computer names, like localhost, or domain names, like helpdeskgeek.com and the IP number for them is right beside the name in the file. It’s a bit like how your friends’ names are associated with their phone numbers in your phone.