Windows 10: Using hosts file to block sites: Use 127.0.0.1 or 0.0.0.0 ?


  1. Posts : 270
    Windows 10
       02 Jan 2018 #1

    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?
      My ComputerSystem Spec

  2.    02 Jan 2018 #2

    How to Geek can help..
    What is the Difference Between 127.0.0.1 and 0.0.0.0?

    For example, 127.0.0.1 is used to in re-routing email through my anti-SPAM program on my PC.
    Last edited by dalchina; 02 Jan 2018 at 06:00.
      My ComputerSystem Spec


  3. Posts : 2,132
    Windows 10 Pro x64 FCU - XP/Vista/Win7/Win8.1 in VM for testing
       02 Jan 2018 #3

    Technically 0.0.0.0 is the network segment broadcast address and 127.0.0.1 is the current device

    It is usual to use 127.0.0.1 as this routs packets (your data ), to a specific device (your current device) where it will be basically ignored

    Using 0.0.0.0 will generally send the data to all devices on the local segment which would also normally be rejected, but would greatly increase the potential traffic on the local network if there were more that a single device on the network.

    As the 0.0.0.0 address has an ambiguous usage it can act in various ways depending on the hardware in use

    127.0.0.1 is always a specific address so should be used as a loop-back address to kill potentially problem data packets)
      My ComputerSystem Spec


 

Related Threads
Vanilla hosts file ( hosts file not working ) in AntiVirus, Firewalls and System Security
Hi I keep getting this symptom from time to time , it fixes with windows updates but then occasionally come back . I have a list of advertising and malware websites that I filter through hosts file that are often used by a chat client as per the...
Hi, I have had a problem for a while. when using edge on the homepage of google if I have Don't Block Cookies enabled in the edge settings, I'm typing in google without any suggested words/sites appearing. if I use 'Block All Cookies' it...
Solved Blocking sites with Hosts File in Browsers and Email
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...
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 15:36.
Find Us