Block websites at system level? Android way? Like hosts file in windows?


Recommended Posts

Hi. I want to block certain sites on my phone but I don't want an app that will keep track of all my site visits.

 

Can it be done, like in windows, by redirecting certain urls to local host at system level ?

 

I am on unjailbroken android 11 phone

  • +Random Stranger changed the title to Block websites at system level? Android way? Like hosts file in windows?

Not that I know of. The only thing I could think of is to find some sort of DNS service that you can use to block websites and then set that up as the Private DNS provider on your mobile. I use PiHole myself at home but that does not work when I leave the house.

  On 18/01/2022 at 08:09, MarkusDarkus said:

Not that I know of. The only thing I could think of is to find some sort of DNS service that you can use to block websites and then set that up as the Private DNS provider on your mobile. I use PiHole myself at home but that does not work when I leave the house.

Expand  

Well - this might work since I mostly want to stop procrastinating at home - and wasting time.

 

Outside home is less important

 

 

But surely there must be a way????

  • 4 weeks later...
  On 18/01/2022 at 07:45, E.Worm Jimmy said:

Hi. I want to block certain sites on my phone but I don't want an app that will keep track of all my site visits.

 

Can it be done, like in windows, by redirecting certain urls to local host at system level ?

 

I am on unjailbroken android 11 phone

Expand  

 

https://www.google.com/amp/s/www.modmy.com/how-modify-hosts-file-your-android-device%3famp

  • Like 1

android does have a hosts file but it requires root to modify (Adaway uses the hosts file and that's why it requires root to use as example)

 

if there's a way to modify the hosts file without root then I'm not personally aware of it.

 

note: I can't open techbeck's link here at work to see if it's a non-root method

  On 15/02/2022 at 16:26, Brandon H said:

android does have a hosts file but it requires root to modify (Adaway uses the hosts file and that's why it requires root to use as example)

 

if there's a way to modify the hosts file without root then I'm not personally aware of it.

 

note: I can't open techbeck's link here at work to see if it's a non-root method

Expand  

Try this.   

 

https://www.modmy.com/how-modify-hosts-file-your-android-device

 

Posts a method of non root but I personally have not tested it.  The hosts file as something that's always been on Android I believe. I've been messing with it for a while now.

  On 15/02/2022 at 19:00, techbeck said:

The hosts file as something that's always been on Android I believe

Expand  

oh yeah, with Android's Linux/Unix origins it's always had a hosts file.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It's just exactly what it looks like. The facial polygon count is low and rigid, and the background appears heavily blurred. You can clearly see jagged edges around the car window as it exits the tunnel. The character animations feel like they're from 2010. The Xbox Series S has performance similar to an RX 570 or GTX 1660, which is disappointing and contributes to holding back game development. The Switch GPU is roughly on par with a 2050 or 3050, which is even worse. Developers have often discussed the challenges and limitations of developing for outdated/low end hardware, noting how it can hold back progress. This isn't a new issue. I am sure we will hear about the "Challenges" they had to overcome here and sacrifices that had to be made for compatibility with the outdated/low end hardware.
    • Whether on Edge or Firefox, I don't get this prompt to accept cookies, because they're already whitelisted by the Cookie AutoDelete extension, both on Edge and Firefox. And, as I've already said, using Edge (yesterday), Neowin isn't whitelisted (I never use Edge), and I didn't get that pop-up. And this morning, after checking, still no pop-up, and everything is activated, the proof (screenshot), I have no ads on the right side. I must add that I block the following trackers Doubleclick, and Scorecardresearch, as well as a few other undesirable ones, via the Host file. Back to square one! After all, it's a simple click to continue, so I'll do with it. 🤷🏽‍♂️ Thank You
    • F'ing FIIINALLY! Much easier to ask people what their hardware is 🙏 and could also very well just say DDR4 or DDR5 without asking to bloat it too much. I'm also curious to see what it will say in More device info...
    • Sure, that must be why it was revealed at the Sony showcase... the game was announced 5 years ago and the visuals are far from poor, what the hell are you smoking, plus the Switch 2 is pretty much on par with an Xbox Series S. It would be absolutely insane for a dev to build a game "with the Switch 2 in mind" when it's coming to all platforms where the majority of sales will happen.
  • Recent Achievements

    • Week One Done
      jbatch earned a badge
      Week One Done
    • First Post
      Yianis earned a badge
      First Post
    • Rookie
      GTRoberts went up a rank
      Rookie
    • First Post
      James courage Tabla earned a badge
      First Post
    • Reacting Well
      James courage Tabla earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      400
    2. 2
      +FloatingFatMan
      178
    3. 3
      snowy owl
      170
    4. 4
      ATLien_0
      167
    5. 5
      Xenon
      134
  • Tell a friend

    Love Neowin? Tell a friend!