What I want to do?
I want to completely block network traffic for installed iOS apps. Hence, I need to filter network traffic based on the app, which executes this network request. Note that my app is created for personal use and learning purposes.
How is this possible on iOS. Could you kindly point me into the right direction?
What I don't want to do?
Block network requests just by using the given domain names or using local VPNs.
What I did?
I skimmed through the Network Extension documentation and this forum.
- https://developer.apple.com/documentation/networkextension/content-filter-providers?language=objc
- https://developer.apple.com/forums/thread/692597
Thank you! BR, Markus
A Network Extension content filter is likely to be your best path forward here.
Note that my app is created for personal use and learning purposes.
Cool, because NE content filters have significant distribution limitations. See TN3134 Network Extension provider deployment. The good news is that this won’t cause you problems if you stick to development builds of your app.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"