We see that on simulator after we clear the cache the content is blocked and working as expected.
Is there a limit to the number of rules on content blocker using Safari web extension?
Would you recommend Safari content blocker extension or Safari web extension for the same functionality?
Post
Replies
Boosts
Views
Activity
We are creating an extension to block the ads on Safari.
Could you please elaborate this-- "Additionally for Web Extensions, we have a limit of: 100 static rulesets 50 enabled rulesets 30,000 dynamic and session rules"
Yeah I think you can do this by downloading a remote JSON file and saving the rules locally and updating rules using SFContentBlockerManager.reloadContentBlocker.
May be you can keep a version check for the rules file and check if this is a new version then save it again else use the same old version.
But again this also means that there will be a local copy of the rules in the file.
We have more than 22,000 rules in the ruleset_1 json file.
We are getting the below error with 22342 rule sets. We are trying this for Safari iOS.
As per the documentation, we see that dynamic rules have a limit of 30,000 - https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
This issue is happening in Safari iOS 18
We have filed a feedback can we get any update on this?
https://feedbackassistant.apple.com/feedback/15381109 and attached a sample app as well. FB15381109