Any issue with these hosts file entries?

Discussion in 'other firewalls' started by Phoenix, Jan 10, 2018.

  1. Phoenix

    Phoenix Registered Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    Location:
    USA
    So I was tweaking my friend's laptop and upon showing him my custom hosts file which includes some bad URLs I don't wanna ever visit and the Microsoft Ads servers, he asked me why did I have 127.0.0.1 local host in the first line and gave me an explanation that went over my head.

    Is there any problem with me having the first and last line highlighted in bold? I don't remember where I saw the need to enter the addresses between those lines, I think I took that idea after seeing how the MVPS Hosts file was like

     
  2. FanJ

    FanJ Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    3,113
    Hi,

    The last line in red you can remove.

    And after the comments (the lines starting with # ) it should start with:
    127.0.0.1 localhost

    ::1 localhost #[IPv6]


    In those "custom" entries from you, I would change 127.0.0.1 into 0.0.0.0

    I would advice to read again at http://winhelp2002.mvps.org/hosts.htm

    I use the MVPS HOSTS file. Others use other and/or more HOSTS files.

    If I add my own entries, I begin those lines with a line (entry) like for example:
    # Phoenix
    (explanation: entries starting with # are just only info; just like comments in entries after # )

    There may be more to say about it, like for example:
    - why don't you use the MVPS HOSTS file?
    - be aware that the HOSTS file is a file without extension

    IMHO this thread belongs in the "Other Anti-malware Software" subforum.
     
    Last edited: Jan 11, 2018
  3. FanJ

    FanJ Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    3,113
    Here is how the start of the HOSTS file (using the MVPS HOSTS file) should look:

    # This MVPS HOSTS file is a free download from: #
    # http://winhelp2002.mvps.org/hosts.htm #
    # #
    # Notes: The Operating System does not read the "#" symbol #
    # or anything after the # symbol on the same line #
    # #
    # This *must* be the first line: 127.0.0.1 localhost #
    # #
    #**********************************************************#
    # -------------- Updated: November-30-2017 --------------- #
    #**********************************************************#
    # #
    # Disclaimer: this file is free to use for personal use #
    # only. Furthermore it is NOT permitted to copy any of the #
    # contents or host on any other site without permission or #
    # meeting the full criteria of the below license terms. #
    # #
    # This work is licensed under the Creative Commons #
    # Attribution-NonCommercial-ShareAlike License. #
    # https://creativecommons.org/licenses/by-nc-sa/4.0/ #
    # #
    # License info for commercial purposes contact Winhelp2002 #

    127.0.0.1 localhost

    ::1 localhost #[IPv6]
     
  4. FanJ

    FanJ Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    3,113
    If you would want your own entries added, using the MVPS HOSTS file, the start would show like this:

    # This *must* be the first line: 127.0.0.1 localhost #
    # #
    #**********************************************************#
    # -------------- Updated: November-30-2017 --------------- #
    #**********************************************************#
    # #
    # Disclaimer: this file is free to use for personal use #
    # only. Furthermore it is NOT permitted to copy any of the #
    # contents or host on any other site without permission or #
    # meeting the full criteria of the below license terms. #
    # #
    # This work is licensed under the Creative Commons #
    # Attribution-NonCommercial-ShareAlike License. #
    # https://creativecommons.org/licenses/by-nc-sa/4.0/ #
    # #
    # License info for commercial purposes contact Winhelp2002 #

    127.0.0.1 localhost

    ::1 localhost #[IPv6]

    # Phoenix
    0.0.0.0 softonic.com
    0.0.0.0 bestvistadownloads.com
    0.0.0.0 image.online-convert.com
    0.0.0.0 mp3goo.com
    0.0.0.0 tracking.opencandy.com.s3.amazonaws.com
    0.0.0.0 media.opencandy.com
    0.0.0.0 cdn.opencandy.com
    0.0.0.0 tracking.opencandy.com
    0.0.0.0 api.opencandy.com
    0.0.0.0 offer.alibaba.com
    0.0.0.0 t.nuvidp.com
    0.0.0.0 sso.anbtr.com
    0.0.0.0 seen-on-screen.thewhizmarketing.com
    0.0.0.0 win-rar.com
    0.0.0.0 mp3adio3.website
    0.0.0.0 mp3zo.com
    0.0.0.0 filehippofree.com
    0.0.0.0 sofwareworld.com
    0.0.0.0 win-rar.com
    0.0.0.0 driversguru.com
    0.0.0.0 burners.burn4free.com
    0.0.0.0 instamp3.live
    0.0.0.0 a.ads1.msn.com
    0.0.0.0 a.ads2.msads.net
    0.0.0.0 a.ads2.msn.com
    0.0.0.0 ads.msn.com
    0.0.0.0 ads1.msads.net
    0.0.0.0 ads1.msn.com
    0.0.0.0 b.ads1.msn.com
    0.0.0.0 b.ads2.msads.net

    # [Start of entries generated by MVPS HOSTS]
    #
    # [Misc A - Z]
     
  5. Buddel

    Buddel Registered Member

    Joined:
    Apr 28, 2015
    Posts:
    705
    Why are there two entries for win-rar.com?
     
  6. Phoenix

    Phoenix Registered Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    Location:
    USA
    Thanks a lot for your detailed answer. I really appreciate your time on this.

    The reason I chose 127.0.0.1 is I remember back then on Windows 8, when I tried 0.0.0.0 the addresses weren't blocked but they were blocked when I used 127 so I'll give it another shot now and see if they're blocked
     
  7. Phoenix

    Phoenix Registered Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    Location:
    USA
    Nice catch man, thank you, I'll fix that
     
  8. Phoenix

    Phoenix Registered Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    Location:
    USA
    Ok now 0.0.0.0 is working and the sites are blocked :)

    This is my new edited hosts file thanks to @FanJ

     
  9. RockLobster

    RockLobster Registered Member

    Joined:
    Nov 8, 2007
    Posts:
    1,790
    Yes 0.0.0.0 is much better to use for blocking purposes than 127.0.0.1 because 0.0.0.0 means NO address, while using 127.0.0.1 points to the loopback interface on your own machine and directing all those web connections to your loopback interface can cause other issues.
     
  10. Phoenix

    Phoenix Registered Member

    Joined:
    Jun 21, 2016
    Posts:
    268
    Location:
    USA
    Right. Thanks man.
     
  11. FanJ

    FanJ Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    3,113
    You're welcome!
    Glad I could be a little help.
    (I'm sure that siljaline would have helped better (RIP Randy; almost a year ago; you are missed old friend!)).
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.