Questions tagged [hosts]

For questions related to the "hosts" file, an operating system file that maps hostnames to IP addresses.

53 questions
46
votes
4 answers

How to edit 'etc/hosts' file?

I'm using Nexus 5 on Android 4.4. Kitkat. I would like to edit /etc/hosts file and add redirect mappings in order to block few ads. I need to know how to access/modify/replace /etc/hosts file. I have already checked below similar Q/A: How to…
Tilak
  • 725
  • 4
  • 9
  • 13
41
votes
6 answers

How to edit 'etc/hosts' file in non-rooted phone?

I'm using LineageOS 14.1 and don't want nor need to root it. How can I remount /system rw and edit /system/etc/hosts? All answers in "How to edit 'etc/hosts' file?" expect a rooted phone.
berbt
  • 533
  • 1
  • 4
  • 7
2
votes
4 answers

/etc/hosts file is ignored (android)

I changed my hosts file using ES Explorater after root to 127.0.0.1 youtube.com but it still takes to the real website, I tried on chrome browser and the default browser. I found the same problem on many forums but it didn't help me at all. can any…
Bashir
  • 121
  • 1
  • 3
1
vote
0 answers

Why my hosts file is not saving/resetting after editing it?

I need to add # before the command line (so I can login into my google account which is a common problem). I rooted my device (I'm using a huawei P8) and tried using total commander and root explorer, both no success. With root explorer, I used…
WTFolex
  • 11
  • 2
0
votes
0 answers

Is there any way to change hosts file without root?

Is there a method to modify the hosts file on an Android device running version 13 without root access? I'm interested in altering hosts file to manage network configurations and block certain websites, but I'd prefer not to root my device due to…