Would like to filter out some domains beyond the AdBlock lists. Any help/ recommendations much appreciated. Thanks in advance!
Would like to filter out some domains beyond the AdBlock lists. Any help/ recommendations much appreciated. Thanks in advance!
8 Comments
cerebralhawks@lemmy.dbzer0.com · 17 pts · 359d
Yes. When I used to mod Android phones, we used AdAway to fix the HOSTS file.
The HOSTS file exists on pretty much everything. iPhone, Android, Switch, PlayStation, Xbox, Mac, PC. Most of those don't let you edit it, though.
And on Android without root, just like on an iPhone, it's down to DNS filtering. You need root to edit the HOSTS file.
For platforms you can't edit the HOSTS file on, you can run your own DNS server (I have no experience doing this, but, it can be done) and block ads there, and route your locked-down machines through that. I think a Pi-Hole does that (Raspberry Pi computer running custom router software for blocking ads/trackers).
LifeInMultipleChoice@lemmy.world · 5 pts · 359d
Yeah. A Pihole can do the DNS server part. Easy to set up too. Then just set the DNS for your wifi ID, some also set a VPN on their devices to route back to their home network (or something like Tailscale) when they are out and about. Though I admit when I'm out and about I just let my VPN handle the DNS.
Onomatopoeia@lemmy.cafe · 7 pts · 359d
If you don't have root, editing android's host file is tricky (if not impossible).
If you can't root, try an alternate DNS service, or a VPN-based one like ReThink DNS.
lemmyhavesome@lemmy.world · 2 pts · 359d
You can use a DNS level ad blocker like Pi-hole on your home network.
JeeBaiChow@lemmy.world · 1 pts · 359d
Would it be possible to have a micro DNS on your phone? So it looks up locally first, where I can have my block entries, then defers to the internet one if there is none?
Appoxo@lemmy.dbzer0.com · 2 pts · 358d
In theory you could run pihole in docker on a phone. Dunno how feasible that is.
DirigibleProtein@aussie.zone · 1 pts · 359d
I used to do this, but haven’t run Android for a few years. This looks right:
https://www.howtogeek.com/140576/how-to-edit-the-hosts-file-on-android-and-block-web-sites/
JeeBaiChow@lemmy.world · 1 pts · 359d
Ah yes, there it is. So I need to root my device.