Step 5 – Once the file opens up, just scroll down and copy and paste these two lines at the bottom. Just make sure to change the websitename with the name of the file which you want to block. 127.0.0.1 www.websitename.com. 127.0.0.1 websitename.com. For example if you want to block facebook, just put the code as shown below. STEP 6 Sep 07, 2018 · I have been using this technique for years now and, sometimes, I forget that my hosts file protects me so much. Whenever I need to use someone else’s computer, or temporarily disable my hosts file, I realize the level of comfort it provides me. I’m well aware that tweaking its own hosts file is a good but technical solution. Aug 01, 2017 · Happily, the unified hosts file repo on Github has done this work for you. A curated list combining the efforts of many other communities, this page offers hosts files for blocking several combinations of categories. All of the files block adware and malware, but many block other things such as porn, gambling, fake news, and even social networks. Sep 19, 2019 · Next, you need to type links of the sites which you want to block from opening in the Edge browser. 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 May 10, 2019 · Hello . 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. Nov 12, 2018 · Step 4: Now open the Hosts file with Notepad, and hit Enter to add a new line after localhost. Type the following address followed by a space and the address of the website you want to block.

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.

Jul 15, 2013 · copy the hosts file to your desktop (C:WindowsSystem32driversetc) remove or comment out using "#" the entry corresponding to Youtube. copy and overwrite the hosts file back to the original location. restart your computer to make sure all DNS caches are gone

Aug 01, 2019 · The hosts file is a file you will find on both Windows 10 and macOS. You can use it to block access to any website you want. We’ve discussed how you can edit the hosts file on Windows 10. If you want to block websites on macOS by editing the hosts file on it, you will find that it’s not as simple to access it.

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. How to Block Websites Using the Hosts File in Windows 10. Every Windows version comes with a special Hosts file which helps resolving DNS records.In addition to your network configuration, the file can be used to define a domain=IP address pairing which will have priority above the value provided by the DNS server. Jun 14, 2020 · You can use a modified HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers and possibly unwanted programs. This is accomplished by blocking the connection(s) that supplies these little gems. Step 5 – Once the file opens up, just scroll down and copy and paste these two lines at the bottom. Just make sure to change the websitename with the name of the file which you want to block. 127.0.0.1 www.websitename.com. 127.0.0.1 websitename.com. For example if you want to block facebook, just put the code as shown below. STEP 6 Sep 07, 2018 · I have been using this technique for years now and, sometimes, I forget that my hosts file protects me so much. Whenever I need to use someone else’s computer, or temporarily disable my hosts file, I realize the level of comfort it provides me. I’m well aware that tweaking its own hosts file is a good but technical solution.