SwiftUI: How to apply content blocker to chrome?

575 views Asked by At

I'm currently working with the content blocker Extension which works just fine for Safari. But does anyone know if it can also be applied to Chrome, if so how?

Another question I have: Is it possible to block an app, with the content blocker Extension or some other way

1

There are 1 answers

5
Burak Akkaş On

From the Apple's documentation:

Content Blockers are app extensions that you build using Xcode. They indicate to Safari a set of rules to use to block content in the browser window. Blocking behaviors include hiding elements, blocking loads, and stripping cookies from Safari requests.

So it is not possible to block Chrome requests via Content Blockers.

For the other question you have, you can enable or disable any content blocker extensions from Safari's settings. Check here for more information.

If you are asking for a solution which blocks the apps, there are no way to programmatically do this in iOS (there may be some ways for jailbroken devices), at least to my knowledge.

  1. You can check out Apple MDM here.
  2. For Mac OSX, you can check modifying parental controls, examples are here and here.