Problem with blocking sites with hosts file


  1. Posts : 4
    Windows 10 Enterprise x64
       #1

    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.
      My Computer


  2. Posts : 234
    Windows 10 Pro (x64)
       #2

    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.
      My Computer


  3. Posts : 4
    Windows 10 Enterprise x64
    Thread Starter
       #3

    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?!
    Last edited by J4NY4R; 21 Aug 2015 at 07:45.
      My Computer


  4. Posts : 4
    Windows 10 Enterprise x64
    Thread Starter
       #4

    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?
      My Computer


 

  Related Discussions
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 19:14.
Find Us




Windows 10 Forums