Details:
The trick is to use the host. file (involved in the name resolution (DNS) mechanism) to redirect the unwanted host addresses to nowhere (IP:0.0.0.0)

Here is a quick example how to write this "Black List" :

# *** localhost: Needs to stay like this to work
127.0.0.1 localhost # !!! DO NOT REMOVE !!! MANDATORY AS THIS IS YOUR OWN MACHINE !

# Blocking Unwanted Addresses (advertising)
# -----------------------------------------
#
0.0.0.0 0-29.com
0.0.0.0 0-2u.com
0.0.0.0 0-days.net
0.0.0.0 00.sharedsource.org
0.0.0.0 000freexxx.com
0.0.0.0 000info.com
0.0.0.0 001uk-ssl.247realmedia.com
0.0.0.0 001uk.247realmedia.com
0.0.0.0 001ukcollect.247realmedia.com
...

Note: do not remove the entry "127.0.0.1 localhost" as this is pointing to your own machine and it is needed by our system to work correctly !!!

Some site that update regularly the banned sources:

  • http://everythingisnt.com/hosts.html
  • http://www.mvps.org/winhelp2002/hosts.htm
  • http://pgl.yoyo.org/adservers/
  • http://hostsfile.mine.nu/downloads/