To quickly enable “ad blocking” on Android CyanogenMod you can utilise an old Linux/*nix trick — addition of entries to the /etc/hosts file to resolve to 127.0.0.1 (localhost) so that all ad serving network domains point to…nothing.
In proper English this means that any location that matches an “ad serving” web address instead points to the local machine, and therefore never get loaded.
To start using your own “ad blocker”, save this file on your Android CM7 tab. For purposes of this tutorial we will assume the location is in the /sdcard/download folder. Next open the Terminal Emulator and at the $ prompt type the following commands:
#cp /sdcard/download/hosts.txt /system/etc/hosts
(tap y key at the prompt)