this post was submitted on 31 Aug 2025
17 points (100.0% liked)

Ask Lemmy

34471 readers
1907 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

Would like to filter out some domains beyond the AdBlock lists. Any help/ recommendations much appreciated. Thanks in advance!

top 8 comments
sorted by: hot top controversial new old
[–] cerebralhawks@lemmy.dbzer0.com 16 points 1 week ago (1 children)

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 4 points 1 week ago* (last edited 1 week ago)

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 6 points 1 week ago

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 points 1 week ago (1 children)

You can use a DNS level ad blocker like Pi-hole on your home network.

[–] JeeBaiChow@lemmy.world 1 points 1 week ago (1 children)

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 points 1 week ago

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

[–] DirigibleProtein@aussie.zone 1 points 1 week ago (1 children)
[–] JeeBaiChow@lemmy.world 1 points 1 week ago

Ah yes, there it is. So I need to root my device.