Skip to content

Latest commit

 

History

History
104 lines (65 loc) · 4.48 KB

NOTES.md

File metadata and controls

104 lines (65 loc) · 4.48 KB

Notes

Recommendation

Tools

My personal recommendations of tools to use filterlists on. Also to use custom DNS (some of them).

Recommendations in order.

Android

✅ 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

Windows

✅ 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.

Troubleshoot

Fix lag, stutter, hang, etc. caused by hosts file.

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)
  1. Download Systemless-hosts module
  2. Install it through Magisk or KernelSU
  3. Reboot

The module will automatically change the hosts file permissions every boot or every period of time.

Method 2 (Advanced)
  1. Download Terminal app (choose one)
    • Terminal Emulator for Android (outdated) : F-Droid
    • Termux : GitHub | F-Droid
    • or other terminal app you prefer
  2. Execute commands below in terminal:
    su
    chmod 640 /system/etc/hosts
    Note: You have to execute this everytime you modify the 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.