Security Corner

Sep 30 2015   9:10PM GMT

There’s no place like

Ken Harthun Ken Harthun Profile: Ken Harthun


During a recent rash of malware infections on students’ laptops, most of which were probably drive-bys or served by frames in otherwise innocuous pages, I remembered a solution that had once served me well: A HOSTS file. As you know, a HOSTS file is a text file on your computer that is used to map host names to IP addresses, but did you know that this was the precursor to DNS? Back in the ARPANET days, this file was manually updated as new hosts came on line or their addresses changed. The file was shared with the members of the network so they could all communicate. DNS made sharing and updating host addresses automatic and relegated the HOSTS file to use mostly on local networks.

While the file isn’t broadly used on most networks these days, it remains an integral part of the networking stack on all operating systems. It is the first thing that is checked prior to routing traffic and usually takes precedence over DNS. This makes it very useful for blocking access to unwanted web sites or servers. All you have to do is make an entry in HOSTS.TXT that points the web site or server address to the local machine address, The good folks over at for years have been maintaining a hosts file that does just that. It contains thousands of malicious, useless, or unwanted websites.

I’m going to try using this again on some student laptops and see if it helps. I’ll let you know. In the meantime, you can read all about it and download the file for yourself here.

1  Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.
  • armanmomenirad
    پاسخ خود را اضافه کنید ...
    10 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: