Posts

Showing posts with the label proxies

Limiting http connectivity to specific domains globally

Limiting http connectivity to specific domains globally I'm working on an android project that requires me to block access to certain urls across all browsers and apps, sort of like what a parental filter would do. I've come across a bunch of ways people seem to be using to achieve this, one being the hosts file, which is not editable unless you have a rooted device, and the other commonly mentioned is the ProxySelector, but none work for me. What I'm wondering: is this kind of a system wide setting even possible, especially on non-rooted devices? I can imagine many scenarios where such a setting could present a security risk, eg. spying on users and their activity etc. In short, is it possible to make an android background service that blocks certain websites (better, redirects them to its own http service)? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of s...