I have an application that uses NEFilterProvider API to filter urls (allows/blocks browsing). ControlProvider and DataProvider extensions created.
So for this point I can block/allow certain urls. I wonder if there is a way to implement redirection to custom url using NetworkExtension ?
According to NEFilterDataProvider:
There is no other way to redirect user besides a link from "block" page. Neither url nor page content could be changed using NEFilterProvider API.
The best solution for redirection would be a VPN connection. You can find example here.