Since it’s National Cyber Security Awareness Month, I think it’s fitting to re-post my short 2008 piece on using the hosts file to block unwanted sites. I looking it over, I discovered that FaltronSoft no longer exists, hence the strikethrough. The MVPS.org site, however, still exists and is actively maintained with current information. You can sign up at the site to be notified of updates.
Using a HOSTS file to block access to malicious or unwanted web sites is an old trick and it’s excellent protection against malware. I’ve been using the mvps.org hosts file for about five years, and I have never been infected with any malware, despite, for testing purposes, intentionally visiting sites known to host it. The thing just works. It’s a great way to add an additional layer of security to your machine. You’ll also notice that many of those annoying ads no longer display in your browser.
Today, I found a cool utility that will let you download, install, and update your HOSTS file directly from the mvps.org site: Hosts File Updater, a freeware program by FaltronSoft. This single 16K executable checks the mvps.org site for a new version of the HOSTS file. If it finds one, it asks you if you want to update. Give your permission and the program backs up your existing HOSTS file and downloads and installs the new one. It also automatically sets the file to read-only, a nice feature.
In Using the Windows Host File for Privacy and Security, techsupportalert.com has this to say:
Employing the Windows Hosts file to prevent a PC from connecting to undesirable web addresses is a very old practice that is still being used by some as a security measure or to block ads and cookies. Experienced PC users will be familiar with the Hosts file but, if it is a new concept to you, you can read about how this simple text file works at this link. You should also look at what Gizmo wrote about the file in his newsletter ten years ago.
I, for one, have been using this method successfully for years. Give it a try.