0

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?

3 Answers 3

2

Sorry, an application can't do this.

Sign up to request clarification or add additional context in comments.

1 Comment

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
2

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.

2 Comments

On second thoughts, can you change the dns server settings for the browser.
Yes, but it requires the phone to be rooted: blog.varunkumar.me/2010/09/…
1

You can set an intent-filter for some url (using http scheme). By this way, if user browser on an identified url, your app will be launched instead of the webpage.

more details here: http://developer.android.com/guide/topics/intents/intents-filters.html#ifs and here: http://developer.android.com/guide/topics/manifest/data-element.html

Regards, Patrick

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.