NEFilterDataProvider + NEFilterControlProvider not catching in-app requests

Goal : Block all outbound connections to a static list of hosts (both In-app requests and WKWebView/Safari).

App & both extensions have Network Extension entitlement with content-filter-provider and filter-control-provider

What’s working: Safari and WKWebView requests matching the block list are dropped.

What’s broken: In-app traffic never reaches the Data Provider—those requests always succeed.

Setup: • NEFilterProviderConfiguration with both Data & Control providers, filterBrowsers = true, filterSockets = true • Data Provider implements handleNewFlow for socket/browser flows • Control Provider implements handleNewFlow for browser flows • Enabled via saveToPreferences() and toggled ON in Settings

Answered by DTS Engineer in 841452022

OK. But let’s continue this conversation on your other thread, where there’s a bit more context.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Let’s start with some basics. Are you targeting iOS? Because there’s significant differences between content filters on iOS and macOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Quinn. Thanks for your reply! I am targeting iOS apps. But eventually i was able to get it work the way i want. Thanks again for your reply though!

OK. But let’s continue this conversation on your other thread, where there’s a bit more context.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

NEFilterDataProvider + NEFilterControlProvider not catching in-app requests
 
 
Q