hosts file ! Safe to delete ?

Page 2 of 2 FirstFirst 12

  1. Posts : 541
    Windows 7 Ultimate x64
    Thread Starter
       #11

    Ok guys. I'll try to explain why do i want to delete this file
    Some sites ( advertising, i guess ) are blocked in this file, manually. After i made this changes, i have some problems with "login" on some forums. Sounds wired, but it is so.
    I don't know if it's allowed to say which sites i blocked, but some online newspapers are very very slow because of this sites. I'm not sure if it's advertisings, but anyway, they "block" some online newspapers.
    I use Mozilla Firefox as default browser, but i tried Google Chrome / Opera / PaleMoon, and is the same story.
    :)
      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #12

    Then just delete the entries you added. Why the need to delete the whole file........
      My Computer


  3. Posts : 541
    Windows 7 Ultimate x64
    Thread Starter
       #13

    Ok, thanks, and sorry if a was a bit angry, earlier.
      My Computer


  4. Posts : 578
    Windows 7 Pro x64
       #14

    This is what the file should look like.


    # 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


    Just copy and paste it into your hosts file opened in notepad. Save as all files with no extension.
      My Computer


  5. Posts : 22,814
    W 7 64-bit Ultimate
       #15

    Just for information sake, you have to open Notepad as an Administrator to be able to edit the Hosts file, I don't believe there has to be anything 'in' the Hosts file but I would not delete the file.


    Hosts File : Use in Windows 7 / Vista
      My Computer


  6. Posts : 797
    Windows 7 Ultimate (x64)
       #16

    I would be very surprised if the system still worked after the hosts file would be deleted.
      My Computer


  7. Posts : 578
    Windows 7 Pro x64
       #17

    unifex said:
    I would be very surprised if the system still worked after the hosts file would be deleted.
    More then likely it would do 1 of 2 things.
    1) Recreate that file.
    2) Do nothing and not worry about it.

    That file is there for the user to make changes to block or redirect certain IP addresses (at your choosing and discretion), whether local or public (internet). If it isn't there I don't think it would matter to the OS. As it is now it does not contain any info except on how configure/edit it, note the # in front of every line.
      My Computer


  8. Posts : 351
    Windows 7 x64 (RTM via MSDN)
       #18

    Why not just try it. Rename hosts to hosts.old. Reboot and try to go online. If it fixes your problem, great, if not, rename hosts.old to hosts and reboot.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:11.
Find Us