Parental control app: supported way to show parents the pages and searches a child visits, without decrypting traffic, with or without Family Sharing?

Hello,

I'm an individual developer building a parental control app for iPhone and Mac. We never decrypt traffic and don't use a VPN. The child is told clearly, on their own device, what their parents can see.

On iPhone we use the Screen Time API in two modes:

  • .child authorization, when the child is in the parent's Family Sharing group;
  • .individual authorization, when the child is not in a Family Sharing group (no child Apple Account, or an account the parents don't manage). We know the child can revoke this authorization; when that happens, we alert the parents.

Parents need to see the pages and searches their child visits (for example a Google search term or a Wikipedia article title), not only domains. We understand from the Content filter providers documentation and earlier replies on this forum (threads 704467 and 842671) that NEFilterDataProvider is designed so that user network content can't be exported. We want to stay within Apple's intended use.

Our plan on iPhone is a Safari Web Extension bundled in the child app. With the child's permission ("All Websites"), it reads the URL and page title in Safari and sends them to our server, where only the child's parents can see them. Other browsers stay allowed by default (parents then see domains only); parents can turn on a "Safari only" option that blocks other browsers with ManagedSettings. We use SFSafariExtensionManager (iOS 26.2) to tell parents if the extension is turned off.

On Mac (Developer ID app, the child uses a standard account, the parent is the administrator), we plan a content filter system extension for all connections, plus browser extensions in Safari, Chrome and Firefox for page-level history.

Questions:

  1. Is a Safari Web Extension the supported way to give parents page-level history on iPhone? Does App Review accept it in both .child and .individual authorization modes?
  2. Does ManagedSettingsStore.webContent.blockedByFilter = .auto(...) lock the Safari extension toggles the same way the Screen Time "Limit Adult Websites" setting does, and does that work under .individual authorization? If not, is there a supported way for a Family Controls app to keep its own Safari extension enabled?
  3. Can a Family Controls app install a content filter (NEFilterManager) under .individual authorization, or only under .child? If our control provider receives a flow through handleReport(_:), may it send that flow's hostname to our server so parents see blocked attempts?
  4. On macOS, may our content filter system extension send the hostname of every connection, with the name of the app that made it, to our server for the parents? Is that an accepted use of NEFilterDataProvider on macOS?

Thank you.

Answered by DTS Engineer in 919537022
Written by eliorpom in 919367022

A. On an unsupervised iPhone, is there any supported way to prevent the user from switching the DNS setting back to Automatic … ?

I don’t know. I’m not really an expert in using the iPhone (-: If such a setting did exist it’d be under Settings > Screen Time > Contents & Privacy Restrictions. I took a quick look and I can’t seeing applicable [1], although you could reasonably file an ER for that.

I can confirm that there’s no API to do this.

Written by eliorpom in 919367022

B. Can we detect that change when our app isn't running?

I doubt it. iOS generally prevents one app from seeing another app’s NE settings, and that extends to any nested appexen. Moreover, IIRC such extensions run in a custom sandbox that’s more restrictive than a normal appex.

Written by eliorpom in 919367022

C. Is there a supported way to know that our DNS settings aren't being used because a VPN is active?

There are lots of ways you can approach this, but I’m not really comfortable with any of them. That’s because iOS supports advanced DNS setups and:

  • There are no APIs that return enough details for you to work out the currently active setup [1].
  • Even if there were, it’s hard to interpret that state in a binary compatible way. This stuff has changed in the past — indeed, it’s changed a lot in the past — and it wouldn’t surprise me if it changed again in the future.

Having said that, your suggestion to resolve a custom host name seems like a reasonable place to start.

Written by eliorpom in 919367022

On macOS, is it supported for an NEFilterDataProvider in a system extension to record each flow's remote hostname and source app, and send them to our server?

Yes. macOS has a very different privacy stance than iOS, and this is one example of that. This is reflected in the fact that macOS content filters don’t have separate data and control extensions. Changing that would break all existing content filters. Which isn’t beyond the realm of imagination, but I don’t think it’s something you should spend cycles worrying about.

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

[1] Although there is a Mobile Data entry, which I found surprising.

[2] This is in contrast to macOS, where you have the System Configuration framework dynamic store.

I can answer the NE side of this. If you still have questions about other technologies, I recommend that you start a new thread in the relevant subtopic and reference the answers I’ve given here.

Written by eliorpom in 860059021

3- Can a Family Controls app install a content filter (NEFilterManager) under .individual authorization, or only under .child?

I presume you’re talking about iOS here. If so, this is answered by the Deploying a content filter provider section of TN3134 Network Extension provider deployment.

Written by eliorpom in 860059021

4- On macOS, may our content filter system extension send the hostname of every connection, with the name of the app that made it, to our server for the parents? Is that an accepted use of NEFilterDataProvider on macOS?

Accepted by whom?

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

Thanks Quinn, TN3134 makes it clear: no content filter without .child authorization on iOS. We want the app to work the same way with and without Family Sharing, so on iOS we now plan to use NEDNSSettingsManager with our own DoH server instead, so that each parent can choose what is blocked.

We know the user can turn this off in Settings, and that a VPN's DNS takes precedence. We don't want to fight that, only to tell the parents reliably. Three questions about it:

A. On an unsupervised iPhone, is there any supported way to prevent the user from switching the DNS setting back to Automatic, or is detecting it the best we can do?

B. Can we detect that change when our app isn't running? For example, can an app extension, such as our DeviceActivityMonitor extension, call loadFromPreferences and read isEnabled, or does this only work in the app itself?

C. Is there a supported way to know that our DNS settings aren't being used because a VPN is active? Our plan is to resolve a test hostname that only our DNS server answers. Is that a reasonable approach, including with iCloud Private Relay turned on?

Sorry, question 4 was vague. I don't mean App Review: the Mac app is distributed directly with Developer ID. I mean technically, as a supported use of the API. On macOS, is it supported for an NEFilterDataProvider in a system extension to record each flow's remote hostname and source app, and send them to our server? Or does it only work today because the macOS sandbox is less strict, and we shouldn't rely on it?

I'll start new threads for the Safari extension and Screen Time questions and link back to this one.

Accepted Answer
Written by eliorpom in 919367022

A. On an unsupervised iPhone, is there any supported way to prevent the user from switching the DNS setting back to Automatic … ?

I don’t know. I’m not really an expert in using the iPhone (-: If such a setting did exist it’d be under Settings > Screen Time > Contents & Privacy Restrictions. I took a quick look and I can’t seeing applicable [1], although you could reasonably file an ER for that.

I can confirm that there’s no API to do this.

Written by eliorpom in 919367022

B. Can we detect that change when our app isn't running?

I doubt it. iOS generally prevents one app from seeing another app’s NE settings, and that extends to any nested appexen. Moreover, IIRC such extensions run in a custom sandbox that’s more restrictive than a normal appex.

Written by eliorpom in 919367022

C. Is there a supported way to know that our DNS settings aren't being used because a VPN is active?

There are lots of ways you can approach this, but I’m not really comfortable with any of them. That’s because iOS supports advanced DNS setups and:

  • There are no APIs that return enough details for you to work out the currently active setup [1].
  • Even if there were, it’s hard to interpret that state in a binary compatible way. This stuff has changed in the past — indeed, it’s changed a lot in the past — and it wouldn’t surprise me if it changed again in the future.

Having said that, your suggestion to resolve a custom host name seems like a reasonable place to start.

Written by eliorpom in 919367022

On macOS, is it supported for an NEFilterDataProvider in a system extension to record each flow's remote hostname and source app, and send them to our server?

Yes. macOS has a very different privacy stance than iOS, and this is one example of that. This is reflected in the fact that macOS content filters don’t have separate data and control extensions. Changing that would break all existing content filters. Which isn’t beyond the realm of imagination, but I don’t think it’s something you should spend cycles worrying about.

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

[1] Although there is a Mobile Data entry, which I found surprising.

[2] This is in contrast to macOS, where you have the System Configuration framework dynamic store.

Thanks Quinn, that answers all my questions on the NE side. I'll test the custom host name approach.

I filed an ER for the DNS setting: FB25806954