How To blocking advertising in Android applications and something more .. with AdAway (Android-x86 100% compatible)
The aplicacon we will see below, will help us to eliminate publicity of the free applications easily or even block websites with adult content , in case of underage could have access to the device, is also open Source you can find the sources here http://code.google.com/p/ad-away/.
In certain forums (xda-developers one of my reference forums) present it as an alternative to Adfree which i was test in Android-x86 and not works properly, the application works but did not block the advertising, I have no idea why (I imagine that in the future maybe this will solved, but in any case I prefer this one 😉 ), AdAway works great.
This application needs to have our tablet rooted or so, but us in Android-x86 do not have these problems because we have root access on our devices, in any case to avoid potential problems in Android-x86 Superuser is used, an open source application that is now included standard on Releases of Android-x86.org.
If you have built your own iso from source code, if you do not have Superuser here I put a link to the program.
And knowing this, we begin with the review of the program to start find some descriptions and buttons simple and concise as we see below..
As we see in the picture above, this software works by using the file “hosts” of our system, for all who do not know of that handles this file you can follow the link ” Hosts file – Modify, restore and edit Windows-Linux-mac” with this tutorial you will learn that function plays the file “hosts”.
To give an example and continue we say that in the hosts file you can enter an IP at your whim and assign a DNS at your whim also, thus :
As you can see we can assign network names at our whim to IP addresses, sometimes identifiers, and sometimes effective, as would happen if we assign a real DNS in this way:
These directions we see both IP and DNS are real, and would respond normally, however, if what we want is to block google.es, or redirect google .es to another server like bing.com we need to do that in this way:
18.104.22.168 google.es # Redirect google.es to bing.com IP
127.0.0.1 bing.com # Redirect bing.com a localhost IP
255.255.255.255 twitter.com # twitter.com here will see a 404 error in our browser..
22.214.171.124 engadget.com # Still as normal..
126.96.36.199 pornosite.com # Redirect to google.es (block adults content)
And explained this, I hope you have a clear idea .. something like that is what makes AdAway, download a hosts file containing the DNS’s of many of the servers that serve the banner ads to your device, merges with your local hosts file , and blocks for your device can not access them.
Knowing now more or less what he does, we will use it .. press the download button and implement ad blocking..
And proceed to download updates from the hosts file …
Upon completion, the application asked us if we want to reboot for the changes to take effect, we can say no and check the box to not show us this message again, and the changes are applied at the next reboot.
In the menu of options see the extras offered
In the menu Hosts sources we have the links to the sites where the program gets the hosts updates, and gives us the ability to add new sources (excellent detail) as seen below ..
Just would add our new file server hosts and ready ..
On the menu your lists we find three sections and a menu of options .. we will see below.
Actually this part I have something diffuse about the menus “White” and “Black” but if I’m wrong please let me know, but I think the “black list” is to add hosts to block them, and the “List white “seems that we could add domains, subdomains, subdomains of subdomains, to block ranges DNS in a way more selective or broad.
We also have the ability to redirect as we did in the example of the file “hosts” that we saw at the beginning of the article, and as we can see we have to fill in the boxes ..
Apparently this application did not seem great thing and look all the options that brings even more reserves some little surprise, and is the ability to import and export our lists black / white or redirects, in the sdcard.
Besides all this brings some extra little buttons in the DNS log request menu that allows record all dns to those we acceded when we are connected, using tcpdump, and save it in a file for review when we want.
And finally see the options in Preferences menu..
We have the update options, and someting more..
Like you can see in the last image, we can redirect all blocked DNS to a single IP of our choice, and do that all the blocked DNS’s point to that IP (great!), we can set the path of the hosts file also, and a webserver to do that all the request that the banners
Como se ve en la imagen podemos elegir una direccion DNS unica para que todo lo que vayamos bloqueando apunten a la direccion DNS que nosotros le especifiquemos (Genial!), podemos indicar el destino del archivo hosts (preferiblemente no tocar), Enable the web server option, I think it is for some programs that are very perisitentes seeking a response of the advertising server, with that Web server the petitions will does at the local server, and the app would be left quiet (I gues 😀 ).
And finally, that’s all (and no small feat), the truth, I liked it, is one of the programs that seem simple, but you see, it’s free 😉 enjoy.
Cheers and I hope you enjoyed.