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 01: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.

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 00: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

 

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 09: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

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 13:00, techbeck said:

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

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

    • You pay just $100 per TB with this rare 4TB PCIe Gen4 NVMe SSD deal by Sayan Sen SSDs and GPUs are incredibly hard to get nowadays due to high pricing. Discounts are quite rare which is why we report on them as soon as we spot a good deal. For example AMD's new 9070 GRE was finally up for sale at a very good price of just $500 thanks to a special coupon. Sadly that deal is gone but if you happen to be looking for a 4TB NVMe SSD and can spend around $400 there is a really good offer on sale that you should not miss out on as TeamGroup's 4TB G50 model is on sale for that that price which means you are only paying $100 per TB, a very good deal in the current market (purchase link under the specs table down below). The TeamGroup T-FORCE G50 NVMe SSD is a PCIe Gen4 drive and as such it promises to deliver sequential read speeds of up to 5,000 MB/s, helping accelerate game loading, file transfers, and everyday computing tasks. Since this is a 4TB drive you can use it for a gaming library to take advantage of things like DirectStorage. The SSD features an InnoGrit controller and SLC caching technology to support consistent performance. An ultra-thin, patented graphene heatsink is included to aid in heat dissipation. Get it at the link below: Team Group T-FORCE G50 4TB Internal SSD (TM8FFE004T0C129): $449.99 + $50 off w/ promo code SSF69668, limited offer => $39.99 (Sold and Shipped by Newegg US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • I agree. I also think Phil stayed too long. They should definitely fire whoever thought all a console platform needed was Call of Duty, Elder Scrolls, and Fallout to survive. Asha and crew are still saying they need more Elder Scrolls and Fallout games. They simply don't get it.
    • Macbook Air is an appealing option, as are plethora of Windows devices with various different CPU's
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      518
    2. 2
      +Edouard
      200
    3. 3
      PsYcHoKiLLa
      110
    4. 4
      Steven P.
      89
    5. 5
      Nick H.
      71
  • Tell a friend

    Love Neowin? Tell a friend!