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!
Emil Kako · Mar 2, 2015 at 01:03 pm · 1 comment

How Do You Usually Access the XDA Forums?

There are a number of different apps on the Play Store that make browsing the XDA portal and forums a fun experience on mobile, but we want to know: What's your favorite way to access the XDA forums? Do you prefer browsing on the desktop, mobile app, or mobile browser? If you use a mobile app, which one? Let us know how you connect with our community in the comment section below.

DISCUSS
Faiz Malkani · Mar 2, 2015 at 12:39 pm · no comments

Google Announces Plans for Projects Titan, Loon and Link

Once a year, top players in the mobile sphere gather for MWC, to show off what they've been working on and collectively set the standard for the year to come. Yesterday was a big day with the launch of HTC and Samsung's flagships, alongside numerous other announcements, and today it was Google's turn to take the stage. SVP Sundar Pichai took the stage in Barcelona to speak about Google's network initiatives, Project Link and Project Loon, as well as to...

XDA NEWS
Mario Tomás Serrafero · Mar 2, 2015 at 11:36 am · 1 comment

Intel at MWC 2015: New Chip Branding and Details

Intel showed its face at MWC 2015 to give the world a yearly update on their upcoming line of chipsets for mobile. While last year the company focused on gathering partnerships and strengthening up their services, architectures and production, now they are revamping their Atom line of SoCs for mobile with a new brand name and a distinctive category format much like that of their i3/i5/i7 line of personal computing processors. The new scheme will be naming the chips x3, x5...

XDA NEWS
Share This