Ok .. Here I go ..
Blocking Unwanted Content From the Net
This can be done by editing a file called Hosts used by MS TCP/Ip for locating IP addresses for typed urls ..
What happens is Windows keeps tracks of IP address of sites visited by you in this file so it wont have to query the DNS service every time you open the website .. When you put an address in the address bar the address is first resolved to an IP address .. So Window keeps this file to list known IP addresses . ..
What we will do is to put a
127.0.0.1 for each site you wanna block .. like common ad servers and spysites .. When request to this site is found Windows will search for their entry in the Hosts file and it will found this (127.0.0.1) address and it will try to connect this site which is your Localhost address .. So it wont find the ad images and ad popups and the like .. Your computer will then give up calling the ad server and no ads will be loaded, nor will any tracking take place. Your choices for blocking sites are not just limited to blocking ad servers. You may block sites that serve advertisements, sites that serve objectionable content, or any other site that you choose to block...
This HOSTS file is located here:
Windows 95/98/Me c:\windows\
Windows XP c:\windows\system32\drivers\etc\
Windows NT/2000/ c:\winnt\system32\drivers\etc\
This Hosts file doesnt have any extension .. You may find Hosts.sam in Win 98 but it is only a dummy file ... You should save the Hosts file corresponding to ur Operating System ...
So a small example Hosts file :
Code:
# localhost: Needs to stay like this to work
127.0.0.1 localhost
127.0.0.1 123banners.com
127.0.0.1 ad.adsmart.net
127.0.0.1 ad.ca.doubleclick.net
127.0.0.1 ad.de.doubleclick.net
127.0.0.1 ad.doubleclick.net
127.0.0.1 ad.es.doubleclick.net
127.0.0.1 ad.fr.doubleclick.net
127.0.0.1 ad.free6.com
127.0.0.1 ad.it.doubleclick.net
127.0.0.1 ad.iwin.com
127.0.0.1 ad.jp.doubleclick.net
127.0.0.1 ad.kr.doubleclick.net
127.0.0.1 ad.linkexchange.com
127.0.0.1 ad.linksynergy.com
# and so on ...
The # sign denotes a comment ..
You can find a sample Hosts file here ..
(The file contains many entries I found at www.mvps.org)
PS .. When ad image is blocked a red cross box is visible (page not found messages) .. There is a program called eDexter availible to replace the error message with transparent image ..
And yes .. I have read that putting 0.0.0.0 instead of 127.0.0.1 also works but it creates problem with proxy servers thats why I am not suggesting it ..