julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android
https://jak-linux.org/projects/dns66/
GNU General Public License v3.0
2.11k stars 200 forks source link

Cosmetic filtering #59

Open MaluNoPeleke opened 7 years ago

MaluNoPeleke commented 7 years ago

Can a cosmetic filtering option for the browser be integrated (similar to AdGuard)? Would be nice to remove non loaded ad areas.

julian-klode commented 7 years ago

Cosmetic filtering of pages likely requires us to modify the pages - which we increasingly cannot do, as they are HTTPS. Even without HTTPS, if we want to modify pages, we'd have to redirect all traffic through the VPN, causing battery drain (or at least skewed stats).

What can be done without affecting battery is filtering on specific hosts: For example, modifying the VPN code to redirect IP addresses of ad servers and then blocking specific URIs on them or redirecting those to others. (You could of course abuse such a framework to implement more filtering rules, but it's not something I'm interested in).

That said, even doing HTTP is unlikely to happen unless something awfully breaks somewhere.

psyguy commented 2 years ago

Hy @julian-klode, any updates on this, by any chance?