Tools
My personal recommendations of tools to use filterlists on. Also to use custom DNS (some of them).
Recommendations in order.
✅ yes 🟧 yes, but not recommended ❌ no
Name | Links | ROOT | NO ROOT | Open Source |
---|---|---|---|---|
personalDNSfilter | Official Website | F-Droid | 🟧 | ✅ | Source Code |
AdAway | Official Website | GitHub | F-Droid | ✅ | ✅ | Source Code |
✅ yes ❌ no
Name | Links | Open Source |
---|---|---|
YogaDNS | Official Website | ❌ |
Online DNS Services
Use online DNS services as an ad-blocker with DoH (DNS over HTTPS) or DoT (DNS over TLS).
You're able choose which filterlists to be included in the DNS address. But these DNS services only provides well-known filterlists, so you cannot use a custom filterlists (including my filterlists atm).
Note: I've tested so many times, DoH is way faster than DoT.
-
RethinkDNS - free
[!NOTE]
The filterlists are only updated once a week.My configuration:
- DoH:
https://sky.rethinkdns.com/1:YBuAAxAIEAAQEERAwL8=
- DoT:
1-manyaayqbaiaaeaqirambpy.max.rethinkdns.com
Check or configure the filterlists that I used: https://rethinkdns.com/configure?s=added#1:YBuAAxAIEAAQEERAwL8=
- DoH:
-
dnswarden - free
Android
I'm assuming that the device is rooted, because the only way to modify the
hosts
file on Android is using root.
Changing the hosts
file permissions
Fix the issues by restricting/removing other
from hosts
file permissions.
I don't know any down side or "bad" impact of removing
other
permissions, but it definitely fix the issues (I have tried it myself).Related: AdAway/AdAway#881
Method 1 (Simple)
- Download Systemless-hosts module
- Install it through Magisk or KernelSU
- Reboot
The module will automatically change the
hosts
file permissions every boot or every period of time.
Method 2 (Advanced)
- Download Terminal app (choose one)
- Execute commands below in terminal:
Note: You have to execute this everytime you modify the
su chmod 640 /system/etc/hosts
hosts
file
Reference: https://xdaforums.com/t/fix-android-scroll-lag-caused-by-host-file.3286993/
Using too much filters in /etc/hosts
can make the device slow, lagging, stutter, hang or other problems as the device needs time to load the hosts
file/reads the entries inside the hosts
file. To put it simply MORE ENTRY = MORE TIME TO LOAD.
The best way to prevent this are avoid using too much blocklists/using blocklists that has so much entries.
More blocklists doesn't necessarily mean more ads/trackers blocked, a small, well-maintained blocklists can be enough to block ads/trackers, like those in my recommendation.
Another alternatives is using browser-based ad-blocker (either using a browser that has inbuilt ad-blocking features, like Via Browser on Android; or a browser extensions, like uBlock Origin on any browser you prefer) or using Online DNS Services.