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

    in Windows 10 Gaming
    Blocked sites: Why have you blocked access to certain sites that I had access to in the recent past. I am a concenting adult of 65 years of age? https://answers.microsoft.com/en-us/windows/forum/all/blocked-sites/abd01c8a-e78b-4f0f-aa62-f4b49c9de4f2
  3. Blocked sites

    in Windows 10 Software and Apps
    Blocked sites: Why have you blocked access to certain sites that I had access to in the recent past. I am a concenting adult of 65 years of age? https://answers.microsoft.com/en-us/windows/forum/all/blocked-sites/abd01c8a-e78b-4f0f-aa62-f4b49c9de4f2
  4. Blocked sites

    in Windows 10 Customization
    Blocked sites: Why have you blocked access to certain sites that I had access to in the recent past. I am a concenting adult of 65 years of age? https://answers.microsoft.com/en-us/windows/forum/all/blocked-sites/abd01c8a-e78b-4f0f-aa62-f4b49c9de4f2
  5. Blocking HTTP Sites using Host File

    in AntiVirus, Firewalls and System Security
    Blocking HTTP Sites using Host File: I have a couple of PCs to set up and I know I can use the Host File to block specific websites. Is it possible however to put something in the Host File that would allow me to block a user for accessing any HTTP sites?Thanks...
  6. Blocking Inappropriate Sites

    in User Accounts and Family Safety
    Blocking Inappropriate Sites: We are trying to set parental controls for web browsing, but it is not working at all. If I choose "Block Inappropriate websites" and then go to my child's account and type "sex" in the Edge browser, it allows me to go to all KINDS of inappropriate sites. What does work if...
  7. 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...
  8. 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,...
  9. 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
  10. 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...

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