i want to block a specific URL (a .json file on a webserver)

i dont have root it should run on ANY modern android device AND FireTV ;)

would be nice if we find a way ;)

  • HTTP or HTTPS url? – Robert Apr 13 '18 at 17:39
  • https:// but would be great to be able to block both - and just a specific URL not the whole domain etc – Benjamin Apr 14 '18 at 20:16
  • 1
    If you don't want to block on dns level why did you add the DNS tag? Thi s is a bit misleading. – Robert Apr 15 '18 at 10:04

The only option to block one specific url is using a HTTP proxy. Some HTTP proxies also support HTTPS decryption after installing the used root certificate into Android (AFAIR this is limited to Android up to Android 7.0). Also this only works for apps that use only Android system method for checking the server certificate (no certificate pinning in the app implemented).

There are some on-device proxy apps available, however I don't have much experience with those and don't know if you can configure one to block a specific URL. However it is possible.

What definitely works when using Wifi is to use a HTTP proxy on your PC (Fiddler, Burp, Zed, Charles, ...) and redirect the traffic from your Android device to your PC and the proxy running on it. The proxy on the PC can be used to inspect, modify or block certain requests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.