views:

47

answers:

2

I'm considering writing an internet filter app for Android which would allow parents to block objectionable web sites on their children's phones. I'm assuming this would also be useful on GoogleTV when it comes out. How would I even start? Is it possible to block access to specific sites without requiring the user to root their phone?

I'm guessing I could do it with iptables, but that would probably require a rooted phone.

Edit:

If the phone was rooted, how would one go about doing this? Are ip tables the way to go or is there a better way?

+2  A: 

Sorry, an application can't do this.

hackbod
I agree, that it can't be done on the app layer. Even though if you would have managed to block the URLs, the phone user could simply uninstall the app and hence remove the protection. Imho the way to go is to root it and have the parents install the app on the system partition which at least makes it hard(er) to uninstall it via the phone directly
Tseng
Again how would one do this?
Jay Askren
A: 

Given you can find isAllowed(Url) you can use WebView to load a new page. Although as I write it, you might want a more powerful browser than WebView, http://androidcommunity.com/forums/f4/how-open-a-new-screen-to-display-a-web-page-141/ might be helpful.

vijayg
On second thoughts, can you change the dns server settings for the browser.
vijayg
Yes, but it requires the phone to be rooted: http://blog.varunkumar.me/2010/09/how-to-change-dns-server-on-android.html
Jay Askren