Search code examples
iosswiftsafari-content-blocker

can I block specific website on safari using content blocker extension in iOS


I am working on a content blocker extension in an iOS app. I already blocked specific content on some website, but can I block the whole website using a content blocker extension?


Solution

  • I got a solution.

    [{
            "action": {
                "type": "block"
             },
             "trigger": {
                "url-filter": ".*reddit.*"
                
             }
    }]
    

    write this code in the content blocker extension of JSON file.