Posts

Post marked as solved
1 Replies
800 Views
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?
Posted
by LeoB.
Last updated
.