- Normal view with adverts.
- View without adverts.
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:
$su
#cp /sdcard/download/hosts.txt /system/etc/hosts
(tap y key at the prompt)
Says the file already exists. I’m looking around, but can’t find the command to overwrite.
By: Tony Bullard on 11/07/2011
at 10:17 am