Blocking the Sign-In with Google Prompt

June 02, 2025

I can't remember how many times I've been peacefully browsing the web only to be interrupted by the Sign-In with Google prompt. The prompt has become an annoyance but, fortunately, blocking it is simple. I will first describe how it can be easily blocked using a custom rule in Roadblock and then I will show the custom rule in multiple formats so you can use it with other content blockers. The idea is to block a script that is used for loading the prompt on websites.

Google Sign-In Prompt

Roadblock

  • Open the Custom Rules section.
  • Add a new custom rule and select Block Content.
  • Enter the following in the URL Filter field: https://accounts.google.com/gsi/client.
  • From the Resources section, select Script.
  • From the Loads section, select Third Party.
  • Enable the custom rule.

The custom rule described above can be downloaded from here. To import the custom rule:

  • On iOS: select Roadblock from the Action share sheet.
  • On macOS: double-click the file and you will be prompted to import the custom rule in Roadblock.

Rule Formats

Below is the same rule in multiple formats for use with other content blockers.

WebKit

{
    "action": {
        "type": "block"
    },
    "trigger": {
        "load-type": [
            "third-party"
        ],
        "url-filter-is-case-sensitive": true,
        "url-filter": "^[^:]+://+([^:/]+\\.)?accounts\\.google\\.com/gsi/client",
        "resource-type": [
            "script"
        ]
    }
}

Declarative Net Request

{
    "id": 1,
    "priority": 1,
    "action": {
        "type": "block"
    },
    "condition": {
        "urlFilter": "||accounts.google.com/gsi/client",
        "isUrlFilterCaseSensitive": true,
        "resourceTypes": ["script"],
        "loadTypes": ["thirdParty"]
  }
}

Adblock Plus

||accounts.google.com/gsi/client$script,third-party

A single rule can help make your browsing experience noticeably better. If you are unable to get it working, feel free to contact me. I will be happy to help!