Skip to main content

An easy but powerful way to block ads, banners, adware, spware, tracking pages

You don't always need an expensive piece of software to do complex things. Why to install a 10 Mb software just to block ads that are served from Yahoo servers ? Or to prevent pop-up that always irrate you while you are surfing about.com ?

The magic in hidden in a small file called "HOSTS" which resides in your Windows System folder (Some installations of Windows may use different names for the Windows folder. Substitute the name of your Windows folder for either Windows or Winnt.)

Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC

Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC

Win 98\ME = C:\WINDOWS

The Hosts file is more like an phone book - it maps the IP addresses to host names. When Windows starts, this particular file is loaded in memory and any query to DNS server is first routed through the Hosts file. This provides you with the flexibility to override addresses in the DNS by redirecting any connection attempts back to the local machine, commonly referred as 127.0.0.1.

For instance, the host name for Yahoo! is www.yahoo.com, while its IP address is 204.71.200.67 Either address will take you to Yahoo!'s site, but the www address will first have to be translated into the IP address. If you type in the IP address directly, your computer will not have to look it up.

127.0.0.1 xxx-babes.net

127.0.0.1 xxx-pixx.com

The entries above blocks all objects (like images, streaming audio, video, text content) from the xxx-pixx.com servers and these sites can't even track your movements.

It also enables quick loading of websites as you computer doesn't need to query external DNS servers for the address translation.

This mechanism also blocks the "phone home" feature. If you think that some bad software (adware or spyware) is trying to connect to the author's site in the background, just put an entry for that website in your HOSTS file and all access from your system to that website would be blocked.

If all this is sounding too complicated, just download a freeware HostsMan that lets you manage your Hosts file. The folks at http://www.mvps.org have provided a ready-to-use HOSTS file (202 kb) which blocks most of the bad sites. And they do update it regularly. The last update was just a week back.

Some hijackers may try to playaround with your hosts file by blocking access to all virus scanning / security related sites like mcafee, norton so don't forget to set your host file as read-only once you are done editing it.

Popular posts from this blog

How to Download Contacts from Facebook To Outlook Address Book

Facebook users are not too pleased with the "walled garden" approach of Facebook. The reason is simple - while you can easily import your Outlook address book and GMail contacts into Facebook, the reverse path is closed. There's no "official" way to export your Facebook friends email addresses or contact phone numbers out as a CSV file so that you can sync the contacts data with Outlook, GMail or your BlackBerry. Some third-party Facebook hacks like "Facebook Sync" (for Mac) and "Facebook Downloader" (for Windows) did allow you to download your Facebook friends' names, emails, mobile phone number and profile photo to the desktop but they were quickly removed for violation of Facebook Terms of Use. How to Download Contacts from Facebook There are still some options to take Friends data outside the walls of Facebook wall. Facebook offers the Takeout option allowing you to download all Facebook data locally to the disk (include...

Firefox Keyboard Shortcuts for Power Users

All features in Mozilla Firefox browser are accessible through the use of the keyboard. You can use shortcut keys to view and save Web pages, search the web, open new webpages, work with bookmarks, or find text on the current webpage. Some of the most common keyboard shortcuts in Mozilla Firefox are Ctrl+N (to open a new Firefox window), Ctrl+T (to open a new tab), Ctrl+F4 (to close the current tab) and Ctrl+S to save the current webpage. Mozilla Firefox supports many more powerful keyboard shortcuts. For instance, by pressing a simple key combination, you can manually delete autocomplete entries from the Firefox location bar or Web forms. I am sharing a list of my favorite Mozilla Firefox Keyboard Shortcuts that make web browsing with Firefox even more fun . And you also save your precious time as navigating through several layers of Firefox Toolbar menus is no longer necessary. 1. Web Search Ctrl+K moves the cursor to the Search Bar. You can then type in the terms you wish to fin...

Digital Inspiration

Digital Inspiration is a popular tech blog by  Amit Agarwal . Our popular Google Scripts include  Gmail Mail Merge  (send personalized emails with Gmail ),  Document Studio (generate PDFs from Google Forms ) and   File Upload Forms ( receive files  in Google Drive). Also see  Reverse Image Mobile Search , Online Speech Recognition and Website Screenshots , the most useful websites on the Internet.