Spyke

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

17

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.

5

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.

7
JeeBaiChowreply
lemmy.world

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?

1

In theory you could run pihole in docker on a phone. Dunno how feasible that is.

2

You reached the end

Is there an equivalent to a HOSTS file for the Android platform? | Spyke