John
John

Reputation: 16058

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).

Upvotes: 5

Views: 7512

Answers (4)

Pramod
Pramod

Reputation: 7

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

Upvotes: -2

ihsan
ihsan

Reputation: 11

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/

Upvotes: 1

BG100
BG100

Reputation: 4531

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.

Upvotes: 1

mauris
mauris

Reputation: 43619

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.

Upvotes: 1

Related Questions