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.
Jimmy McGee · Jul 3, 2015 at 06:00 am · no comments

Droid Turbo Lollipop OTA, 2015 Moto G Leaked – XDA TV

Android Lollipop for the Droid Turbo has been released. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of the 2015 edition of the Moto G and be sure to check out the article talking about Android Lollipop for the Huawei Ascend Mate 2. That's not all that's covered in today's video! Jordan talks about the other videos released this week on...

XDA NEWS
Jack Jennings · Jul 3, 2015 at 04:12 am · no comments

EVLeaks Shows Off Possible BlackBerry Android Phone

It wasn't too long ago that we received reports of BlackBerry planning to use Android in their upcoming devices, although it wasn't confirmed how this would be implemented. The Canadian company has publicly announced that they 'remain committed to the BlackBerry 10 operating system', touting its strengths in security and productivity. Now, thanks to Evan Blass at EVLeaks, we have our first look at what one of these upcoming phones could look like.   The picture itself shows the bottom half of a design...

XDA NEWS
Faiz Malkani · Jul 2, 2015 at 08:41 pm · 1 comment

Mysterious GG1 Google Device Stops by FCC. Glass v2?

As the year progresses, we draw further away from Google's annual I/O conference, and closer to the time when the latest hardware from Mountain View is made available to the public. While I/O itself remains one of the most popular tech conferences, the hardware unveiling is a contrastively low-key post across social media, but nonetheless, remains an exciting and much awaited event. In the months leading up to the unveiling, a host of leaks take place, revealing various info about...

XDA NEWS
Share This