Sample Header Ad - 728x90

How to edit 'etc/hosts' file?

47 votes
4 answers
238354 views
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: - https://android.stackexchange.com/questions/1957/how-to-change-the-hosts-file-to-redirect-urls -> Link in the answer is broken - https://android.stackexchange.com/questions/16847/guide-to-editing-etc-hosts -> Not found a way to edit hosts file.
Asked by Tilak (725 rep)
Dec 31, 2013, 07:36 AM
Last activity: Oct 17, 2021, 05:18 PM