Will Verduzco · Apr 24, 2014 at 11:30 am

UnbelovedHosts Uses Xposed to Block Unwanted Connections

First popularized by mvps, hosts-based ad blocking has become the de facto standard for most users on virtually any type of device. This is because without invoking the CPU overhead of a browser-specific plugin, hosts-based ad blocking makes all known ad DNS address point to 127.0.0.1. What’s more, this is done at a system level, so all applications (not just supported browsers) can be ad-free.

Modifying your hosts file isn’t perfect, though. Aside from issues with blank placeholders, redirecting a known ad domain to localhost still results in an attempted connection. And without the help of a dedicated app like Adfree, you have to manually deposit this address list into your /system/etc/hosts file, which is cumbersome when done on a mobile device.

Luckily, XDA Senior Member defim created an Xposed module to efficiently block hosts without having to modify your actual hosts file. But rather than redirecting to 127.0.0.1, this module answers name resolution requests with “No address associated with the hostname.” This is better than resolving to 127.0.0.1 because no connection attempt follows.

There is obviously one major caveat inherent to hosts-based ad blocking on mobile. You have to be using a mobile browser that browses websites directly. In other words, browsers with compression proxies such as Opera Mobile or Chrome (with with “Reduce Data Usage” enabled) will not work.

To get started simply head over to the module thread, install it, and enable it in Xposed Installer.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mario Tomás Serrafero · Jul 30, 2015 at 02:04 pm · 3 comments

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising developments and it being natively supported on Android M, we can soon expect to see them on smartphones everywhere. If done right, it is a useful feature that allows for quick unlocking and authorization. There are concerns regarding security, but nonetheless the industry seems to be embracing it with open arms. What do you think?

DISCUSS
Aamir Siddiqui · Jul 30, 2015 at 01:20 pm · no comments

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we wouldn't be too wrong. After all, the device marked a definite change in how Samsung perceived the market and its own place in it, as it stood amongst the signs of decline which started with the critical reception of the Galaxy S5. To recap, the Samsung Galaxy S5 was criticized heavily for feeling more like a toy, rather than a premium flagship...

XDA NEWS
Eric Hulse · Jul 30, 2015 at 12:24 pm · 2 comments

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One could choose a case, a “skin”, “armor”, or “wraps.” In fact, the global mobile accessory market is poised to reach a high of $62 Billion in 2017. dBrand is one of the more creative and friendly vinyl skin manufacturers around. In hopes of sharing what they can offer, our friends at dBrand sent us over some skins to have a look at. They offer...

XDA NEWS