def rule(event):
    if all(
        [
            "api.notion.com" in event.deep_get("DestinationHostname", default=""),
            not any(
                [
                    event.deep_get("Image", default="").endswith(
                        "\\AppData\\Local\\Programs\\Notion\\Notion.exe"
                    ),
                    event.deep_get("Image", default="").endswith("\\brave.exe"),
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
                        "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
                        "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
                        "C:\\Program Files\\Internet Explorer\\iexplore.exe",
                    ],
                    event.deep_get("Image", default="").endswith("\\maxthon.exe"),
                    any(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\"
                            ),
                            event.deep_get("Image", default="").endswith(
                                "\\WindowsApps\\MicrosoftEdge.exe"
                            ),
                            event.deep_get("Image", default="")
                            in [
                                "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
                                "C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe",
                            ],
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\Microsoft\\EdgeCore\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\Microsoft\\EdgeCore\\"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\msedge.exe"),
                                    event.deep_get("Image", default="").endswith(
                                        "\\msedgewebview2.exe"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith("\\opera.exe"),
                    event.deep_get("Image", default="").endswith("\\safari.exe"),
                    event.deep_get("Image", default="").endswith("\\seamonkey.exe"),
                    event.deep_get("Image", default="").endswith("\\vivaldi.exe"),
                    event.deep_get("Image", default="").endswith("\\whale.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
