我怎么会写一个应用程序来阻止Android上的具体webisites? [英] How would I write an app to block specific webisites on Android?

查看:176
本文介绍了我怎么会写一个应用程序来阻止Android上的具体webisites?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在考虑为Android编写了互联网过滤器的应用程序将允许父母阻止子女的手机反感的网站。我假设出来时,这也将是对的GoogleTV有用。我将如何甚至开始?是否有可能阻止而无需用户以root自己的手机访问特定的网站?

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?

我猜我可以使用iptables做,但可能会需要一个植根电话。

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

编辑:

如果手机被根深蒂固,怎么总会有去这样做?为IP表要走的路还是有更好的办法?

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?

推荐答案

由于你可以找到isAllowed(URL),可以使用的WebView加载了新的一页。虽然我写它,你可能需要一个更强大的浏览器比的WebView,的http://androidcommunity.com/forums/f4/how-open-a-new-screen-to-display-a-web-page-141/可能会有所帮助。

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.

这篇关于我怎么会写一个应用程序来阻止Android上的具体webisites?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆