Windows 10: Blocking sites with Hosts File Solved

  1.    17 Feb 2016 #1

    Blocking sites with Hosts File


    Hello,

    I am trying to block all porn sites on the laptop that I let kids play on. I tried using the hosts file to block them, I found a huge list of porn sites to block. But when I tried to load other sites like Facebook, YouTube, etc. It will take forever to load as I believe it is checking the whole list of sites.

    Now what am wondering is there anyway of doing it and not have any difference with the speed of any other website? Because youtube should just come up with no issues. But with all those sites in the host file it takes forever.

    Windows 10 (by the way)

    Thanks!
      My ComputerSystem Spec

  2.    17 Feb 2016 #2

    Not sure its possible to block all porn sites due to the sheer number of them but heres what Microsoft recommends : Set up Family Safety in Windows 10 - Microsoft Help

    We have many excellent tutorials here at the forums, written by some very capable people, heres one that may help : Family Settings - Manage for Child in Windows 10 - Windows 10 Forums
      My ComputerSystem Spec


  3. Posts : 377
    Windows 10 Pro 64bit v10586.3
       17 Feb 2016 #3

    SPYBOT SEARCH AND DESTROY: Spybot - Search Antivirus Software can/will white list and create an extensive (really extensive) host file block list if you want to try that. Norton Internet Security has a safe net function that can put a pretty good lock down of the bad stuff for kids. You ultimately got to watch what they are doing as generic words for porn, splash ads etc. and what can get through the firewall is not 100 percent guaranteed by anything.
      My ComputerSystem Spec

  4.    18 Feb 2016 #4

    It is the very definition of impossible to block those sites with a host file. You should look in to the built-in controls, but I think you'll find more options with a software solution.
      My ComputerSystem Spec

  5.    18 Feb 2016 #5

    DeaconFrost said: View Post
    It is the very definition of impossible to block those sites with a host file. You should look in to the built-in controls, but I think you'll find more options with a software solution.
    Have any recommended software thats free? And it must only be on the computer. It cant do anything to the network as it is a laptop and we want it blocked on any network. which is why it needs to be only on the computer.
      My ComputerSystem Spec


  6. Posts : 443
    Microsoft Windows 10 Pro 32-bit 10586
       18 Feb 2016 #6

    You could try https://www.opendns.com/home-internet-security/ I have never used it but it says it is free.

    Another Free one is https://dns.norton.com/ .

    Also as to why pages take so long to load when you have a lot of entrees in your hosts file is because you probably have the DNS Client running, If you type services in Cortana you will find Services Desktop App then search for DNS Client and disable it.

    If you want a tool to help you with your hosts file try Hostsman http://www.abelhadigital.com/hostsman and if you use it use HostsServer too http://www.abelhadigital.com/hostsserver .

    I have been using the Hosts file to block sites for over 10 years and have had no problems with speed, Right now my Hosts file is blocking 84,274 sites for various reasons.
    Last edited by sml156; 18 Feb 2016 at 16:57. Reason: Beacuse I can
      My ComputerSystem Spec

  7.    18 Feb 2016 #7

    Thank you sml156! Disabling the DNS Client did the trick!
      My ComputerSystem Spec


  8. Posts : 443
    Microsoft Windows 10 Pro 32-bit 10586
       18 Feb 2016 #8

    Your welcome

    You should also look at HostsServer . 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 request times out which speeds page loads up.

    HostsServer is a local HTTP Server specifically designed to be used with a custom hosts file and is the companion for HostsMan. Features include displays a message or an image when a website or content is blocked, customizable message or image, logs blocked URLs, built-in log viewer, and protected mode.
    Last edited by sml156; 18 Feb 2016 at 22:55.
      My ComputerSystem Spec


  9. Posts : 443
    Microsoft Windows 10 Pro 32-bit 10586
       19 Feb 2016 #9

    I thought I should show you how I setup the sources for Hostsman

    Click image for larger version. 

Name:	Sources.png 
Views:	19 
Size:	14.5 KB 
ID:	65072

    Click image for larger version. 

Name:	Hostsman.png 
Views:	17 
Size:	11.8 KB 
ID:	65075
      My ComputerSystem Spec


 

Related Threads
Since using XP and then Windows 7 have always set the Hosts file to read only as a security measure. Is it still advisable to do this on Windows 10?
Hosts file in Network and Sharing
How can I reset the Hosts file back to the default? pls Is This good?
I can set an alias in the hosts file on a win7 machine and access it just fine but doing the same in Win10 prompts for creds that never work even when entered correctly. What did win10 change? hosts file entry: 127.0.0.1 hostname alias...
My hosts files disappeared in my C:\Windows\System32\drivers\etc. Can some one help me to solve this?
Hi I tried to block some sites in that way but although I cleared DNS cache (ipconfig /flushdns) ater editing the hosts file, I'm still able to access those sites. Googled about it but seems everything has done Ok and wonder why I can't use this...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:07.
Find Us