[GUIDE] Howto Block/Unblock websites / ad servers without any app
ROOT ACCESS NEEDED
I found this method when I was trying to acces neobux.com. I tried to access this site. But I couldn't do it. Whenever I entered the address it always redirected me to localhost (127.0.0.1) I tried every browser, but only opera mini gave access to this. I thought about this & I found this. Opera mini app access internet from opera server. It doesn't directly get the webpage to our device. I spent so much time finding a solution and finally got it!
There's a file in android devices called "hosts" in "system/etc" folder. You have to open it in any text editor. There you will find lines like this,
It's syntax is- 127.0.0.1 website_name
127.0.0.1 is localhost
Think that you want to block facebook. Only thing you have to do is add "127.0.0.1 www.facebook.com" line into the file & save it. If you want to unblock any site just delete the lines containing the website name and save. That's all
★ Xperia Mini Pro SK17i
★ Stock 4.0.4 (modified by me)
★ Lupus Kernel
HTC has been quite good about releasing expedient Android system … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?