Results 1 to 5 of 5

Thread: Spybot creates its HOSTS file in the wrong location

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default Spybot creates its HOSTS file in the wrong location

    When using the spybot's hosts list, if the hosts file does not already exist in the ETC folder, spybot creates the hosts file in the windows folder, and also takes much longer to actually create the file.

  2. #2
    Member of Team Spybot PepiMK's Avatar
    Join Date
    Oct 2005
    Location
    Planet Earth
    Posts
    3,601

    Default

    Which version of Spybot-S&D are you using? And which Windows version?

    Spybot-S&D tries to locate the hosts file in a bunch of locations starting with the regitry path (TCP/IP Parameters key DatabasePath value), over the sysdir etc. folder, the windows folder, and in the end, if it's found nowhere, it uses the registry location, or, if that does not exist, the windows folder for Windows 4.x and the system etc. folder for Windows 5.x.
    I just saw though that Vista is not really there yet (Windows 6.x).

    Default path for missing (recreated) hosts file on Vista
    Just remember, love is life, and hate is living death.
    Treat your life for what it's worth, and live for every breath
    (Black Sabbath: A National Acrobat)

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default

    I am running Windows XP and tried creating the hosts file on both 1.4 and 1.5. Both times it created the hosts file in the windows folder. When i manually created the hosts file in the etc folder, Spybot added the text in the correct location.

  4. #4
    Member of Team Spybot PepiMK's Avatar
    Join Date
    Oct 2005
    Location
    Planet Earth
    Posts
    3,601

    Default

    Could you use regedit and check HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters, a value named DataBasePath?
    Sounds like even that (which should be default) is missing.
    Just remember, love is life, and hate is living death.
    Treat your life for what it's worth, and live for every breath
    (Black Sabbath: A National Acrobat)

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    5

    Default

    The DatabasePath key is showing "%SystemRoot%\System32\drivers\etc" as its value, is this correct?

    Edit: Think I found what originally caused the problem. When I have no hosts file in the windows folder or the etc folder, spybot creates the hosts file in the etc folder. When I made a hosts file in the windows folder, spybot added its entries into the hosts file in the windows folder. So I guess originally I had a blank hosts file in the windows folder and spybot just added its entries to that.
    Last edited by salvinger; 2008-01-15 at 04:28.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •