how to check the HOST file
Results 1 to 9 of 9

Thread: how to check the HOST file

  1. #1
    AO's Resident Redneck The Texan's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    1,539

    how to check the HOST file

    hi, i have heard that there are viruses that can get into your HOST file for windows and really screw things up for you. well my question is how do you check to make sure your host file hasnt been messed with? thanx bye.
    Git R Dun - Ty
    A tribe is wanted

  2. #2
    Trumpet-Eared Gentoo Freak
    Join Date
    Jan 2003
    Posts
    992
    cat /etc/hosts ?
    Come and check out our wargame-site @ http://www.rootcontest.org
    We chat @ irc.smdc-network.org #lobby

  3. #3
    The Doctor Und3ertak3r's Avatar
    Join Date
    Apr 2002
    Posts
    2,743
    It's not just virus's that change your host file.. Adware software have been doin it for a long time

    NJormaly the file will have a preamble text (not needed) and a single entry:
    127.0.0.1 localhost

    some of us have various ad servers listed.. this is to block anumber of unwanted advertising sites having their way with our machines..
    this is a short sample of mine.. (not you can make the host file too big)

    127.0.0.1 localhost
    127.0.0.1 ad.doubleclick.net
    127.0.0.1 doubleclick.net
    127.0.0.1 m3.doubleclick.net
    127.0.0.1 questionmarket.com
    127.0.0.1 ads.enliven.com
    127.0.0.1 ad.au.doubleclick.net
    127.0.0.1 adsfac.net
    127.0.0.1 ebay.doubleclick.net
    127.0.0.1 101order.com
    127.0.0.1 123banners.com
    127.0.0.1 123found.com
    127.0.0.1 180solutions.com
    127.0.0.1 247media.com
    127.0.0.1 24pm-affiliation.com
    To check the hosts file you could write a batch file to compare the hosts file with a known good sample.. or whatever..

    bTW "Cat"dun seem to be recognised by the command prompt in XPee
    the file is located in C:\WINDOWS\system32\drivers\etc where C is the HDD where your WinXP OS is installed
    "Consumer technology now exceeds the average persons ability to comprehend how to use it..give up hope of them being able to understand how it works." - Me http://www.cybercrypt.co.nr

  4. #4
    Senior Member
    Join Date
    Mar 2004
    Posts
    557
    Hi

    I take it that Shrekkie was right, and you are talking about the hosts-file.
    Before messing around with it, have first a look at [1] and [2] for guides
    how to "block" ads.
    You can check the hosts file as follows. Assuming an english windows version:
    Start.Run

    Type:
    notepad %windir%\system32\drivers\etc\hosts

    If you have a virginal setup (assuming a stand-alone PC without special settings),
    the only non-commented out (#) entry should be
    Code:
    127.0.0.1       localhost
    Cheers!


    [1] http://www.dslwebserver.com/main/fr_...osts-file.html
    [2] http://www.swcp.com/~manos/blockads.html
    If the only tool you have is a hammer, you tend to see every problem as a nail.
    (Abraham Maslow, Psychologist, 1908-70)

  5. #5
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Quick recap:

    On *nix it's /etc/hosts
    On Win9x it's %windir%\hosts.
    On NT/XP/2k/2k3 it's %windir%\system32\drivers\etc\hosts.

    Note the dot at the end of the filename on windows systems. It doesn't have a file extension.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  6. #6
    AO's Resident Redneck The Texan's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    1,539
    well thanx for all the help. one more question is there any programs that check this host file for u? i have heard that Win Patrol does, is this true? thanx bye.
    Git R Dun - Ty
    A tribe is wanted

  7. #7
    I'd rather be fishing DjM's Avatar
    Join Date
    Aug 2001
    Location
    The Great White North
    Posts
    1,867
    Directly from the winpatrol web site:
    Detect HOSTS file changes.


    Winpatrol

    Cheers:
    DjM

  8. #8
    AO's Resident Redneck The Texan's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    1,539
    alright... thanx alot yall, talk to ya later.
    Git R Dun - Ty
    A tribe is wanted

  9. #9
    Senior Member nihil's Avatar
    Join Date
    Jul 2003
    Location
    United Kingdom: Bridlington
    Posts
    17,190
    Try Spybot Search & Destroy..................open it in "Advanced" mode. That lets you look at the Hosts file BHOs and all sorts.

    There is an option to load a list of blocks into the Hosts file like Und3rtak3r has done.

    Cheers

Posting Permissions

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