Windows 10: Problem with blocking sites with hosts file

Discus and support Problem with blocking sites with hosts file in Browsers and Email to solve the problem; 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... Discussion in 'Browsers and Email' started by J4NY4R, Aug 20, 2015.

  1. J4NY4R Win User

    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 Windows 10 Enterprise x64.

    :)
     
    J4NY4R, Aug 20, 2015
    #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, Aug 20, 2015
    #2
  3. Moods18 Win User
    Cortana says that i am offline. How do i go online

    For those using a large hosts file, the problem may lie there.

    I was having the same problem with Cortana and multiple Microsoft sites. I have a hosts file that I had compiled from several online sources to block ads and tracking. I cut it down and used just the content from MVPS and SomeoneWhoCares, and Cortana now
    works.

    So it looks like there were some entries in the other sections of it that were blocking sites needed for my Microsoft account. I also changed from using 127.0.0.1 to using 0.0.0.0.

    I hope that helps some of you
     
    Moods18, Aug 20, 2015
    #3
  4. Problem with blocking sites with hosts file

    Did you put in the subdomains too?

    example.com
    www.example.com
    subdomain.example.com

    You need an entry for every variation and subdomain that the site is accessible under.
     
    logicearth, Aug 20, 2015
    #4
  5. J4NY4R Win User
    Well, I have found that if I use domain in the following format (without any space), the work is done:
    w w w.example.com

    And I was able to block google for example but why I can't block facebook?!
     
    J4NY4R, Aug 20, 2015
    #5
  6. J4NY4R Win User
    After some tests just understood that using proxy makes hosts file useless. And that's why I was able to access facebook although I had blocked it by hosts file. Is there any permanent way to block sites with hosts file and using proxy simultanously?
     
    J4NY4R, Apr 5, 2018
    #6
Thema:

Problem with blocking sites with hosts file

Loading...
  1. Problem with blocking sites with hosts file - Similar Threads - Problem blocking sites

  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. Hosts file problem

    in Windows 10 Network and Sharing
    Hosts file problem: Hello everyone, so im trying to open something on my computer and everytime it tells me that it could not find the hosts file even though i have it. Can someone please help!...
  6. 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...
  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. Blocking sites with Hosts File

    in Browsers and Email
    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...