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 · Apr 28, 2015 at 06:00 am · 2 comments

Xposed Modules to Modify Email – XDA Xposed Tuesday

Even though we have Dropbox and other ways to share files, people still want to send files by email. Some Email apps on your Android device have a limit on file sizes. These limits are often lower that the emails servers limits. Why can’t you attach to the limit set by your server? In this episode of XDA Xposed Tuesday, XDA TV Producer TK reviews a couple Xposed Modules that removed the file size limit of the email client. Today...

XDA NEWS
Emil Kako · Apr 27, 2015 at 12:26 pm · 5 comments

Do You Use 4:3 or 16:9 in the Camera App?

Every person has their own method of taking the best photos on their devices, but which aspect ratio is best when taking photos on your smartphone camera? Let us know whether you prefer to use 4:3 or 16:9 and why in the comments below.

DISCUSS
Aamir Siddiqui · Apr 27, 2015 at 11:12 am · 3 comments

The Curious Case Of The Flash Sale

What do the horses in the Xiaomi stable, notably the Mi 3, Mi 4, Redmi 1S, Redmi 2 & Redmi Note 4G have in common with the YU Yureka or the Micromax Canvas Spark, or even the Lenovo A6000 and the A7000? For starters, the mentioned phones are amongst the more value centric Android smartphones, aiming to offer a better deal in terms of specifications and an overall package, than their domestic and foreign competitors in the Indian market. What...

XDA NEWS
Share This