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

    • Right Click on My Computer Icon -> Properties(?)
    • HomeBank 5.9.2 by Razvan Serea HomeBank is a free software (as in "free speech" and also as in "free beer") that will assist you to manage your personal accounting. It is designed to easy to use and be able to analyse your personal finance and budget in detail using powerful filtering tools and beautiful charts. If you are looking for a completely free and easy application to manage your personal accounting, budget, finance then HomeBank should be the software of choice. HomeBank also benefits of more than 19 years of user experience and feedback, and is translated by its users in around 56 languages. Highlights: Cross platform, supports GNU/Linux, Microsoft Windows, Mac OS X Import easily from Intuit Quicken, Microsoft Money or other software Import bank account statements (OFX, QIF, CSV, QFX) Duplicate transaction detection Automatic cheque numbering Various account types : Bank, Cash, Asset, Credit card, Liability Scheduled transaction Category split Internal transfer Month/Annual budget Dynamic powerful reports with charts Automatic category/payee assignment Vehicule cost HomeBank 5.9.2 fixes: bugfix: #2112135 scheduled with limitation don't stop and goes erroneous data bugfix: #2111663 variable scope issue in ui-assign.c bugfix: #2111359 remind status not synced in transfers Download: HomeBank 5.9.2 | 20.2 MB (Open Source) Download: 3rd party packages (macOSX. Ubuntu...etc) View: HomeBank Website | Support | Features | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • How long until the Windows 11 hating bots come and say that Windows 11 committed atrocities against their family and their dog?
  • 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
      171
    4. 4
      ATLien_0
      169
    5. 5
      Xenon
      134
  • Tell a friend

    Love Neowin? Tell a friend!