开发者

Block other apps from accessing the internet

In my app I want the user to create a blacklist of apps that will not be allowed internet access. How might I prevent certain other apps from accessing the internet?

It's a parental control app. I want to make sure only the browser with filtering is allowed internet access and not any other browsers(other apps are OK,开发者_开发知识库 just not browsers).


Like what Ad Free is doing, you can go on with a root access and edit the host file to block the websites related to or used by the apps.


I think you could maybe create a proxy application that runs as a background service. You could then set your browser up to use localhost as the proxy server.

The service will have to listen on port 80 for HTTP requests from the browser, create a real internet request, download the content and post it back to the browser in it's response.

You could then filter and deny any unwanted requests by looking at the URL that the browser is requesting.

There are a few problems with this though, the main one being there is nothing to stop the user from turning off the proxy themselves.


You can use DroidWall for black and white listing. just what you wanted: You need root access!

Review:

http://dottech.org/mobile/android/free-android-app-reviews/21485/android-root-required-block-apps-from-accessing-the-internet-with-droidwall/

Download:

http://code.google.com/p/droidwall/


install Mobiwol: NoRoot Firewall, it's light app, and you there is nothing to do with ROOT, very effective.

https://play.google.com/store/apps/details?id=com.netspark.firewall&hl=en

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜