Screen Time API | Is there a limited number of Web domains that can be blocked with a ManagedSettings filtering policy?

I'm using the 'store.webContent.blockedByFilter' feature to block malicious domains on iOS 16.4. However, I have a list of over 20,000 domains to block, and I'm concerned if there's a limit to the number of domains I can include.

let store = ManagedSettingsStore()
var blockedDomains: Set<WebDomain> = []

 /*contains over 20000 domains names*/
let blackList: [String] = getBlacklistedDomains()

for domain in blackList {
    let webDomain = WebDomain(domain: domain)
    blockedDomains.insert(webDomain)
}

store.webContent.blockedByFilter = WebContentSettings.FilterPolicy.specific(blockedDomains)

With this code it appears that either no domains are being blocked or only a few are affected.

Will having such a large list cause any issues or performance problems?

Accepted Reply

yay the limit is 49 domains / 49 apps, if you cross it, it just stops blocking. This limit is not documented. We reported the issue in June last year -> FB10511690. Can you do the same to help getting this issue fixed ?

  • Thanks for your reply. I reported the issue too.

Add a Comment

Replies

yay the limit is 49 domains / 49 apps, if you cross it, it just stops blocking. This limit is not documented. We reported the issue in June last year -> FB10511690. Can you do the same to help getting this issue fixed ?

  • Thanks for your reply. I reported the issue too.

Add a Comment