Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Ask Lemmy
  3. Is there an equivalent to a HOSTS file for the Android platform?

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

Scheduled Pinned Locked Moved Ask Lemmy
asklemmy
7 Posts 6 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J This user is from outside of this forum
    J This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

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

    C O L 3 Replies Last reply
    10
    • J [email protected]

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

      C This user is from outside of this forum
      C This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

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

      L 1 Reply Last reply
      11
      • C [email protected]

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

        L This user is from outside of this forum
        L This user is from outside of this forum
        [email protected]
        wrote last edited by [email protected]
        #3

        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.

        1 Reply Last reply
        2
        • J [email protected]

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

          O This user is from outside of this forum
          O This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          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.

          1 Reply Last reply
          4
          • J [email protected]

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

            L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

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

            J 1 Reply Last reply
            0
            • L [email protected]

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

              J This user is from outside of this forum
              J This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              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.comA 1 Reply Last reply
              0
              • J [email protected]

                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.comA This user is from outside of this forum
                appoxo@lemmy.dbzer0.comA This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

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

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups