Hosts File Not Working Firefox

Page 1 of 3 123 LastLast

  1. Posts : 32
    Windows 10 (64)
       #1

    Hosts File Not Working Firefox


    Hello again,

    My hosts file will only block sites in Edge, not in Firefox.

    Can't be right. Any ideas ?

    Windows 10 1909

    Regards

    Nordland
      My Computer


  2. Posts : 31,402
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Who is your ISP and do they support using IPv6? Your HOSTS file may only be blocking IPv4 addresses.
      My Computers


  3. Posts : 56,804
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #3

    Nordland said:
    Hello again,

    My hosts file will only block sites in Edge, not in Firefox.

    Can't be right. Any ideas ?

    Windows 10 1909

    Regards

    Nordland
    Zip your hosts file and post it here so we can take a look. May be something simple.
      My Computers


  4. Posts : 32
    Windows 10 (64)
    Thread Starter
       #4

    f14tomcat said:
    Zip your hosts file and post it here so we can take a look. May be something simple.
    ) It probably is ...

    It's so short that making a zip of it wouldn't achieve much. Copy/pasted here:



    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost
    127.0.0.1 mikrotik.com



    Regards

    Nordland
      My Computer


  5. Posts : 1,604
    Win 10 home 20H2 19042.1110
       #5
      My Computers


  6. Posts : 6,742
    22H2 64 Bit Pro
       #6

    Delete 127.0.0.1 mikrotik.com

    Replace with 0.0.0.0 mikrotik.com


    Just delete last line.
      My Computer


  7. Posts : 56,804
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #7

    Deleting the last line gives you an empty hosts file, which may be fine. Doesn't explain your statement that it blocks in Edge, not Firefox. Is this the legacy Edge or Edge Chromium (new one)?

    FYI: mikrotik.com is a Router Manufacturer out of Latvia.

    "MikroTik is a Latvian company which was founded in 1996 to develop routers and wireless ISP systems."

    MikroTik Routers and Wireless
      My Computers


  8. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #8

    Apparently Firefox likes www before the domain name -

    Example -

    127.0.0.1 www.tenforums.com
      My Computer


  9. Posts : 6,742
    22H2 64 Bit Pro
       #9

    OldNavyGuy said:
    Apparently Firefox likes www before the domain name -

    Example -

    127.0.0.1 www.tenforums.com
    As far as I know you can add both entries with and without www

    Quote from another source:

    The HOSTS file now contains a change in the prefix in the HOSTS entries to "0.0.0.0" instead of the usual "127.0.0.1".
    This was done to resolve a slowdown issue that occurs with the change Microsoft made in the "TCP loopback interface"
    Using 0.0.0.0 is empirically faster, possibly because there's no wait for a timeout resolution.
    So I always use 0.0.0.0

    Hosts File Not Working Firefox-replace-ip.jpg
    Hosts File Not Working Firefox-hosts-notepad.jpg
      My Computer


  10. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #10

    Tested with Firefox 78.0.1

    Did not work without the www prefix...for me.

    The www prefix worked in both Firefox and new Edge.
      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 08:59.
Find Us




Windows 10 Forums