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:
- 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?
- 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?
- 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?
- 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.
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.
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.
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.
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.