Windows 10: Blocking sites with Hosts File

Discus and support Blocking sites with Hosts File in Browsers and Email to solve the problem; 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... Discussion in 'Browsers and Email' started by Afees98, Feb 17, 2016.

  1. Afees98 Win User

    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!

    :)
     
    Afees98, Feb 17, 2016
    #1

  2. What to do with containertag.js from vap1sjc1.lijit.com?

    This JavaScript isn't disabling Adblock, but it's slipping past the block list somehow, perhaps by using slightly different URLs.

    If you really want to block this script, you can block specific sites with your HOSTS file. I find this to be no trouble at all. Not everyone agrees.

    If you go this route you don't enter the entire URL

    (containertag.js from vap1sjc1.lijit.com) just enter

    127.0.0.1 <space>lijit.com

    Block websites by editing the HOSTS file

    How to Block Websites By Editing the HOSTS File in Windows

    The HOSTS file and what it can do for you

    The Hosts File and what it can do for you

    HOSTS File- Wikipedia

    http://en.wikipedia.org/wiki/Hosts_(file)

    [Edit, 4 days after original post]

    If this JavaScript message appears on a frequently used site, placing the site in Restricted Sites (if default settings are still being used) will disable scripting and block the message.

    Note: Blocking JavaScript in this way might break desirable features of the site.

    Restricted Sites: Internet Options> Security> Restricted Sites.

    Don
     
    Don Varnau, Feb 17, 2016
    #2
  3. Site Restrictions

    You can access you router settings, probably there are some settings to block certain sites. This would block the sites on your whole network not only on the computer where the host file is located. Inside the browser settings there are also settings to
    block sites but this would only apply for the current user, if you have another user with a different profile on the computer it would not block this sites for him. Best is to block via router.
     
    Ricardo Bohner, Feb 17, 2016
    #3
  4. Blocking sites with Hosts File

    indianacarnie, Feb 17, 2016
    #4
  5. 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.
     
    lopedoggie, Feb 17, 2016
    #5
  6. 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.
     
    DeaconFrost, Feb 17, 2016
    #6
  7. Afees98 Win User
    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.
     
    Afees98, Feb 17, 2016
    #7
  8. sml156 Win User

    Blocking sites with Hosts File

    You could try Home Internet Security | OpenDNS I have never used it but it says it is free.

    Another Free one is Norton ConnectSafe .

    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.
     
    sml156, Feb 17, 2016
    #8
  9. Afees98 Win User
    Thank you sml156! Disabling the DNS Client did the trick!
     
    Afees98, Feb 18, 2016
    #9
  10. sml156 Win User
    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.
     
    sml156, Feb 18, 2016
    #10
  11. sml156 Win User
    I thought I should show you how I setup the sources for Hostsman


    Blocking sites with Hosts File [​IMG]



    Blocking sites with Hosts File [​IMG]
     
    sml156, Apr 5, 2018
    #11
Thema:

Blocking sites with Hosts File

Loading...
  1. Blocking sites with Hosts File - Similar Threads - Blocking sites Hosts

  2. Site blocking on my Win10 laptop

    in AntiVirus, Firewalls and System Security
    Site blocking on my Win10 laptop: I want to be able to block certain websites from my HP Envy m6 1225dx Intel Core i5 laptop running Windows Defender and Malwarebytes Antimalware Free. I had Avast Antivirus and was able to program Avast to do site blocking but how do I do it now that I deleted Avast? And...
  3. Site is blocked

    in Windows 10 Customization
    Site is blocked: I accidentally caused the facebook.com site to be block on my laptop. After my mistake, attempting to access facebook.com results in this notification. ===== Block Site www.facebook.com is blocked! In order to remove this domain from the block list, please visit options...
  4. Blocked Sites

    in AntiVirus, Firewalls and System Security
    Blocked Sites: Hard to believe that #Microsoft is running a scam but if your computer downloads a specific “infected” site a warning comes up on your computer telling you that your blocked by Microsoft and to call a Microsoft 1800 number to “unblock” your computer. When you call the number,...
  5. Block Websites using Hosts File in Windows

    in Windows 10 Tutorials
    Block Websites using Hosts File in Windows: How to: Block Websites using Hosts File in Windows How to Block Websites using Hosts File in Windows The Hosts file is used by the operating system to map human-friendly hostnames to numerical Internet Protocol (IP) addresses which identify and locate a host in an IP...
  6. Blocking gaming/gambling sites

    in AntiVirus, Firewalls and System Security
    Blocking gaming/gambling sites: I have Windows 10 and would like to block the casino/gaming/gambling sites from my computer. I tried to get help from the virtual agent, it keeps sending me to the site to control a child's use of computer. I know on my old, old pc, I could maximize settings so some sites...
  7. Using hosts file to block sites: Use 127.0.0.1 or 0.0.0.0 ?

    in AntiVirus, Firewalls and System Security
    Using hosts file to block sites: Use 127.0.0.1 or 0.0.0.0 ?: I've always blocked domain names in the hosts file by assigning the IP as 127.0.0.1 But I've been reading about the use of 0.0.0.0 instead. What's the difference? Is one better than the other? 101504
  8. Problem with blocking sites with hosts file

    in Browsers and Email
    Problem with blocking sites with hosts file: 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 method. I tested on...
  9. Hosts file

    in Windows 10 Support
    Hosts file: should the Hosts file be made read only ? 51243
  10. Hosts file

    in Windows 10 Support
    Hosts file: I am embarrassed that I forgot on change from Windows 7 to 10 I forgot until now to remember that only the sample Hosts file was installed. Now I cannot recall where the more comprehensive version came from or how to install it. Please advise me. 97081

Users found this page by searching for:

  1. site blocklist for children windows host file blocking

    ,
  2. blocklist of porn sites for host file

    ,
  3. porn site blocking with a hosts file

    ,
  4. blocked sites for kids list for hosts file