• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Block user from accessing certain sites

This application will keep running in background. when a user tries to access a site from a browser( chrome, firefox, opera mini etc) on mobile device. the url will be validated from an online database. if the url is not present in database then user will be able to access it as it is else user will be redirected to page 404.
I am not sure if the application will have access to verify a url which is access from a different application. rooting the phone is not an option for me.
 
This application will keep running in background. when a user tries to access a site from a browser( chrome, firefox, opera mini etc) on mobile device. the url will be validated from an online database. if the url is not present in database then user will be able to access it as it is else user will be redirected to page 404.
I am not sure if the application will have access to verify a url which is access from a different application. rooting the phone is not an option for me.

I think you can make some app like this. But I wonder whether the black list, i.e. online database you mentioned, will be maintained separately by every device client which has installed this app.
 
the device will cache the database locally to avoid http overhead. this cache will be refreshed everyday. I want to know which api in android I can use.
 
Couldn't you just check to see if the website your browsing is on the list and then redirect them to a "safe site"?
But I would bet that you could access the different browsers options on the phone and change the blocked list in each of them with you app. Just update the databases via http download and then go to the browsers options and update the list with your downloaded list.
That is just a idea. I couldn't find any api directly related to your question.
 
Back
Top Bottom