Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Hosts file

  • Please log in to reply
3 replies to this topic

#1 raw


    Bleeping Hacker

  • Members
  • 2,577 posts
  • Gender:Male
  • Location:Texas
  • Local time:07:14 AM

Posted 10 June 2004 - 05:36 PM

In the Windows directory hides a file named HOSTS
Its not a scary beast, just a simple text file:

# Copyright © 1998 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98
# 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:
# rhino.acme.com # source server
# x.acme.com # x client host localhost

Very simple to read and understand. Now we are going to add an entry right there under localhost ad.doubleclick.net

Now when you surf the net ads from doubleclick will not be displayed (because it's looking for doubleclick.net on "your" computer) So all you see is a little red X where an annoying ad would normally be.You can do this with a lot more ad sites by looking at the lower left corner of your browser and when it says "waiting for ad.blahblah.com" just add that name to your HOSTS file.

Reference page
HOSTS file with all the bad sites entered for you


 rawcreations.net          @raw_creations

Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.

BC AdBot (Login to Remove)


#2 sardonyx


  • Members
  • 10 posts
  • Local time:07:14 AM

Posted 16 June 2004 - 10:43 PM

i understand. maybe i should try this and get a little tweak on my platform. thanks!

#3 mortey


  • Members
  • 9 posts
  • Local time:08:14 AM

Posted 10 July 2004 - 04:59 AM

I love this idea thanks! I imagine we won't have to wait for the @#$%ing thing to load either.

#4 Papakid


    Guru at being a Newbie

  • Malware Response Team
  • 6,636 posts
  • Gender:Male
  • Local time:07:14 AM

Posted 10 July 2004 - 08:45 AM

True a HOSTS file won't slow down your startup but large files can potentially slow down your system. See our tutorial The Hosts File and what it can do for you for more information about this and how to avoid it. You'll also see much more information about HOSTS files in general along with where to get other ready made files that can help you prevent getting infected with malware.

The thing about people

is they change

when they walk away.--Mipso

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users