hosts - weakish/cheat GitHub Wiki

Android

On a rooted android device:

su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

You may omit -t yaffs2.

After remounting /system to be read/write, edit the file /system/etc/hosts.

Linux

Edit /etc/hosts/.

Windows

Edit C:\WINDOWS\system32\drivers\etc. (Suppose your Windows installed on C:.)