Block \e\OS ads on DNS level (save processor, RAM, card space, bandwidth, and battery)

Hello everyone,

I found a simpler way to filter ads in \e\OS - by using a DNS server which already filters them. Thus, applications like adaway of browser adblocker can be deactivated, saving computing power (processor cycles), card space, bandwidth, RAM, and battery.
Read the documentation here: Connect to public AdGuard DNS server .
This option can be very easily implemented in Settings → Network & Internet → Advanced → Private DNS.
Select Private DNS provider hostname
Default server
dns.adguard-dns.com
AdGuard DNS will block ads and trackers.
“AdGuard DNS is a reliable way to block ads on the Internet without installing a mandatory application. It’s easy to use, completely free, and quick to set up on any device. It equips you with the core features required to block ads, counters, malicious websites, and adult content. There are no restrictions on the number of devices.”
Their adblocking servers support DoH, DoT, DoQ, and DNSCrypt.

It could also be presented as a default option in future versions of \e\OS.

2 Likes

Due note, DNS based content blocking cannot block first party content or perform cosmetic filtering such as removing blank spaces.

It could also be presented as a default option

I have patches here that adds extra providers based off of a patch from CalyxOS.
/e/OS is welcome to include it:

https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-17.1/android_frameworks_base/0013-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-17.1/android_packages_apps_Settings/0004-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-18.1/android_frameworks_base/0012-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-18.1/android_packages_apps_Settings/0004-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-19.1/android_frameworks_libs_net/0001-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-19.1/android_packages_apps_Settings/0004-Private_DNS.patch
https://gitlab.com/divested-mobile/divestos-build/-/blob/master/Patches/LineageOS-19.1/android_packages_modules_Connectivity/0002-Private_DNS.patch
4 Likes

Thanks @anon88181694, have passed on the details to the team and creating an issue around this. A developer will be looking into it.

2 Likes

Nice proof of mutual aid, I really appreciate it!

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.