Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hosts]

The tag has no usage guidance.

-1
votes
1answer
10 views

Hosts doesn't work

So i play a game that has a server detects emulator users i use emulator so it matchs me with emulator players but not lots of players use emulators on that game and most of those who use it they use ...
0
votes
0answers
32 views

Modifying etc/hosts file doesn't work for redirecting to something else

I need to do it for security testing purpose of an app. I have a rooted emulator which runs 7.1.1, It is rooted, I changed hosts file by using echo command, root file explorer, adb push and every else ...
0
votes
0answers
210 views

How to access https://wex1.in without rooting?

This financial website got it’s domain name deleted but it’s still possible to reach it by adding 104.25.31.35 wex1.in to etc/hosts files on a ᴘᴄ. So how to access the website without editing /etc/...
0
votes
1answer
3k views

How to use adb to push a hosts file in a non rooted device

I am trying to modify the hosts file in my android device without any rooting and after a quick search I came across this adb method to push hosts file to a non rooted device. I followed all the ...
0
votes
1answer
293 views

Edits hosts file ignored by chrome

I'm trying to cut down on procrastination in a fun way (read hacking) by rooting my phone (moto g2) and editing the /system/etc/hosts file like this 127.0.0.1 localhost ::1 ip6-...
3
votes
3answers
2k views

Edit hosts file on android studio messed up my emulator

I had to edit my emulator' hosts file in order to connect to a local development environment. I have followed this steps: Run the emulator: ~/Library/Android/sdk/tools/emulator -writable-system -avd ...
2
votes
1answer
450 views

Android ignore the hosts (etc/hosts) when it's in LTE network?

I use hosts to block some sites, which works in WIFI connections, but when I am in LTE mobile network, these sites seems accessible, I thought somehow android ignore the hosts. I am in Lineages OS ...
0
votes
1answer
332 views

CMD cannot “read” my phones /etc/hosts file when editing it via adb

I have to configure my /etc/hosts file on my rooted device(Lineage OS). I can see the content with cat but when I try to open it with vim/nano/vi I only get these questionmark boxes. Screenshot: https:...
0
votes
0answers
1k views

Disable AdChoices with hosts file

I have a rooted Moto G4+ and I have "AdAway" and "AdBlocker Reborn" installed. However in the Chess.com app, I still get ads from AdChoices on the main page. Does anyone know which domain I can block ...
8
votes
3answers
48k views

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.
1
vote
0answers
93 views

Editing hosts file to restrict website on wifi and mobile data

I have a rooted Samsung Note4 that is running cyanogenmod. I have gone in and edited my hosts file to restrict access to certain websites. However, I have noticed that the restrictions only works when ...
-1
votes
1answer
151 views

Block URLs and encrypt hosts file

I am looking to block a few URLs from an android device... however, I would like to take an extra level of security and password protect the hosts file. I think I can do that with ES File Explorer ...
1
vote
1answer
45 views

How to determine to what hosts Android apps are connecting (root)?

How does one determine to what hosts Android apps are connecting (or trying to connect)? Want to know this information even if the host is being blocked by an entry in the hosts file. Assume the ...
0
votes
1answer
738 views

YouTube and AdAway whitelist?

I use AdAway to modify my hosts file with quite a few aggressive sources. Unfortunately when my filters are active I can't see any channel or user pictures in the YouTube app. I can't figure out what ...
0
votes
0answers
2k views

How do you edit the hosts file on rooted Nougat

I have a Google pixel xl that I have rooted. On my G3 I was able to use Hosts Editor (https://play.google.com/store/apps/details?id=com.nilhcem.hostseditor) without any issues. When I tried on my xl I ...
5
votes
1answer
7k views

Blocking advertising in Nougat 7.0

After upgrading Marshmallow to Nougat I found that hosts-file based ad blockers do not work. I have tried AdAway, setting it to use a symbolic link to the hosts file, and verifying via file explorer ...
1
vote
1answer
3k views

How do you get AdAway to update the hosts file on 7.1 Beta?

I'm trying to get Adaway to work on 7.1 beta on my Nexus 6P. Unfortunately, the flashable zip did not work to move the hosts out of system. Neither did the flashable hosts file. I tried some of the ...
0
votes
0answers
313 views

Can't connect to Play Store. Which app keeps modifying my “hosts” file?

So I am using a rooted Galaxy S6. I am familiar with the hosts file in the Android system and how it works. I modify the hosts file to block ads every once and a while. Recently, I haven't been able ...
4
votes
0answers
214 views

Why is Android showing a different hosts file once my system is booted versus in recovery?

In the past, I've used a modified hosts file on my system that I place at /system/etc/hosts. The process is pretty straightforward Boot into recovery using a custom recovery. Mount /system read-write ...
1
vote
3answers
2k views

/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 ...
0
votes
1answer
746 views

Cannot mount /system rewritable

I have rooted my phone and changed /system/etc/hosts file to block Facebook(just for test). However, since I did it, I am not able to edit the hosts file again. As a result, I cannot visit Facebook ...
1
vote
1answer
318 views

Edit hosts file from terminal IDE with root accessed

My terminal IDE accessed root but cannot edit hosts file. root@172.16.0.151:/system/etc #vim hosts But vim just opens hosts file as readonly. Where do I missed here?
1
vote
1answer
71 views

SM N900A rooted Google Play Store Immediate Shutdown Hosts File Deleted

Recently i rooted my phone. Note 3 att. using kingo root.it worked fine google play was fine but after some days some shitty thing started to happen and my facebook, gapps were all shut.no updating. ...
1
vote
0answers
416 views

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 ...
0
votes
1answer
247 views

Rooted device, modified the hosts file and rebooted but still have access to blocked sites

I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong? Modifying hosts file does not have any effect I followed exactly what the op did and ...
2
votes
0answers
512 views

Is blocking ads with hosts file slow?

For instance, Adaway offers a hosts file with 300K addresses to block. It works, but will this significantly impact performance, therefor battery life? When does the system access the hosts file? ...
2
votes
1answer
10k views

Modify hosts file on Android without rooting device

Is it possible to add entry to hosts file on Android without rooting phone? I am contractor working in remote and I have to use AirWatch and Cisco AnyConnect to get access to VPN, but if I root ...
0
votes
2answers
1k views

Modifying hosts file does not have any effect

Since I spend too much time on websites such as 9gag.com and the like, I decided to try and block them by modifying the hosts file on my rooted Nexus 5. So I created a new hosts file using notepad++,...
36
votes
3answers
209k views

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