RE: Block all internet with the hosts file firewolfrl (TechnicalUser) 8 Jul 08 00:41 I forgot to add you can change the gateway in the network setup to refer to a non existent ip address and that will stop all internet and keep the local network. this also works with the DNS server too.

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. 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.

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.

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. Feb 18, 2012 · In this video I will show you how to block websites in Windows using the Hosts file. Thegeeknet.com. How to block ads with a hosts file - Duration: 3:33. How2 D2 3,546 views. Using the Hosts file to block websites by domain is preferable to trying to use rules in Windows Defender Firewall to block IP addresses since websites will often use more than one IP address. This tutorial will show you how to block websites for all users on the computer using the Hosts file in Windows 7 , Windows 8 , and Windows 10 .

Jun 08, 2017 · 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. (I’m sure you won’t!)

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.