Content Blocker runs but doesn't work

I've followed Creating a Content Blocker, and my content blocker runs but doesn't work (i.e. pages load in Safari), even if trigger url-filter is ".*" and action type is "block". There's "No Active Content Blockers" in Preferences, where I'd expect to see mine. Is there a common solution to this problem?


Also, I had to set this post's "place/space" as Safari Extensions because there was no Content Blocker option.

Replies

Is your app + content blocker code signed in any way? Do you have an Apple Developer account?


If it's not, you'll need to open Safari's Advanced Preferences, and check "Show Develop menu in menu bar".


Then, open the Develop menu, and select "Allow Unsigned Extensions". At that point, your content blocker should show up in Safari.