Steps to configure hosts file to block website/ip. 1. Go to the following directory C:\windows\system32\drivers\etc. You will find Windows Hosts file. 2. Right-click on it and Open with any text editor like Notepad, Notepad ++ etc. The file will look like this: 3. Suppose you want to block a website or ad server e.g. www.example.com. You have Mar 22, 2013 · 5. Readymade HOSTS file for Blocking Malicious Sites. Some clever people have prepared a hosts file which blocks thousands of sites linked to parasites, malware, adware and spywares. This is a very useful way to stay safe on the internet, as with such a hosts file, all known malicious sites will be blocked. 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. 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. May 10, 2019 · The hosts file on my computer blocks unwanted sites. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sep 19, 2019 · How to Block Websites on Microsoft Edge in Windows 10. Unfortunately, there is no such setting available in the Edge browser and due to this reason users left with no other choice, but to use the host file to block sites in Windows 10. In this method, you need to modify the host file and mention the sites which you want to block on the Edge

May 10, 2019 · The hosts file on my computer blocks unwanted sites. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

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. May 10, 2019 · The hosts file on my computer blocks unwanted sites. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sep 19, 2019 · How to Block Websites on Microsoft Edge in Windows 10. Unfortunately, there is no such setting available in the Edge browser and due to this reason users left with no other choice, but to use the host file to block sites in Windows 10. In this method, you need to modify the host file and mention the sites which you want to block on the Edge

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.

Block Porn Websites By Editing Hosts File Before going into the how to guide, let me tell you what is hosts file and how it works : According to Wikipedia, "The hosts file is a computer file used by an operating system to map host names to IP addresses." Feb 19, 2016 · When you block sites with the hosts file even though you are redirecting them to 0.0.0.0 your computer will still try to find the content, What HostsServer does is run a tiny server that returns a "OK 200" to the website which means the website thinks you received whatever you just blocked, It also stops your computer from searching until the Sep 02, 2017 · Method #2: Block Websites by Editing Hosts File in Windows 10. When it is about blocking websites, users usually prefer third party programs available on web. But here in this method, we would rather use hosts file to restrict certain websites from opening. The instructions are given below: Step 1.