I've read that you can block websites by editing the hosts file in /system/etc but I haven't gotten this to work. I gave file manager root privileges and copied hosts to storage, and because none of my text editors would recognise it I renamed it to hosts.txt. Then I edited the file, renamed it back to hosts and copied it to the original directory, overwriting the older version. It doesn't give me any error messages, yet the website I want to block is still reachable. I tried including and excluding http://, https:// and www. What am I doing wrong?
The file looks like this now:
127.0.0.1 localhost
::1 ip6-localhost
127.0.0.1 http://www.imgur.com
The file looks like this now:
127.0.0.1 localhost
::1 ip6-localhost
127.0.0.1 http://www.imgur.com