How to edit hosts file in Android
I think that you know about hosts file. Which is known from Windows and you use it for blocking some websites in computer. Or maybe you have a virus on computer which automatically add lines in hosts file and block some websites and you can't access website. Android too have a hosts file. So we can edit it, if we have some websites problem with accessing them then we can check hosts file and remove unwanted lines. Or just block some websites.
1. We need a Rooted device.
2. After that we need to install this app on device from Play market.
3. Now open that app you just downloaded.
4. Go to next directory File system root -> etc.
5. Now from that folder find hosts file. Press on it and in pop out window choose edit file line.
6. Now remove unwanted lines or add if you want to block websites ( to block you need to add this line 127.0.0.1 example.com ). And after that press on the floppy icon from top to save it.
After that in pop out window press on OK and after that Yes. And Grant with SuperSu if asks.
That's it! All new settings appeared to Android hosts file successfully.
Subscribe to:
Post Comments
(
Atom
)
Why am I still can access to pornography websites although I have typed them in the hosts file? For your information, my Sony Xperia ST23i was rooted also.
ReplyDeleteI repeat same on my phone right now. And i blocked facebook and can't access. Make sure website link is under localhost.
DeleteYes, I have wrote 127.0.0.1 waperotis.com
Delete127.0.0.1 brookemarks.com
under the 127.0.0.1 localhost. I have also reboot my smartphone for a few times but it still failed.
I don't know why... i don't have any problem with blocking!
DeleteIm trying to do the How to get in-app purchases for free in Android tutorial and I cant do it how do I?
ReplyDelete