How to block sign in with Google popups on sites
Sign in with Google is a relatively new wave of popups that Google customers may see on third-party sites that they are not signed-in on. The sites are able to check that a Google account exists and give visitors the option to sign-in using the Google account.
Major sites such as Fiverr or eBay use the feature. Its main purpose is to speed up the registration of an account on the site by using information provided through the Google account; this may result in more sign-ups and more business for the site.
While some users may like the idea, as it requires less interaction to get started, others find it annoying or even creepy.
DuckDuckGo launched a new protective feature against Google sign-in prompts recently in its apps and extensions. The company suggests that accepting them gives Google consent for tracking.
Not every Internet user wants to use DuckDuckGo apps or extensions, and there are ways to get rid of the Google sign-in prompts on sites without using products made by the company.
The following paragraphs highlight options that users have to deal with Google sign in pop-ups on third-party sites.
First, the basics. If you have never signed-in to a Google account in the browser, then you won't see the popups. The popups are displayed in all major browsers, not just when Google Chrome is used.
Option 1: sign-out of Google
The first option is simple: sign-out of the active Google session in the browser that you are using, and you should not see the Google sign in popups anymore.
- Google Chrome: Activate the profile icon in the top right corner of the browser and select Sign out.
- Other browsers: Load https://www.google.com/, click on the profile icon in the top right-corner of the page, and select sign out.
Option 2: use private browsing mode or a Guest account
The second option requires more work, as you need to use a second profile for browsing or use private browsing / Incognito mode instead for that. The main idea behind this is to separate the profile with the Google account from the browsing activity.
It may be better to use different browsers for different purposes, e.g., one browser for all Google activity, and another browser for all other activity.
Still, select Menu and then the available private browsing option to start such a session.
Option 3 (New): Disable the feature in Chrome
Google moved the preference from the Google Account management page into Chrome.
- Load chrome://settings/content/federatedIdentityApi in the Chrome address bar.
- Switch to Block sign-in prompts from identity servers under default behavior.
Option 3 (Old, no longer working): Disable Google Account sign-in prompts in the Google Account settings
Google added a setting to the Account settings to disable the functionality. Here is how you block the feature:
- Load https://myaccount.google.com/u/0/permissions?pli=1 in the browser of choice.
- Scroll down to the "Signing in with Google" section.
- Toggle "Google Account sign-in prompts" to off.
Sites won't display popups anymore after you have made the change.
Option 4: block the popup with content blockers
Another option that you have is to block the popup with content blockers. Most include options to add custom filter rules.
Users of uBlock Origin, for example, may add the following line to the custom filter list to block the popup:
||accounts.google.com/gsi/iframe/select$subdocument
Now You: how do you deal with these popups?
This is completely useless! Any time a person has to create an account for a company they do not want to engage with because they are constantly being harassed is pure stupidity. Googles hates privacy and is a pure bad actor that should be eradicated. How does one actually stop the on slot of harassment by Google to join their cult?
I did this. They do NOT stop. I have to click go away 3X before. I open another email. Same thing. OVER AND OVER AND OVER. I HATE GOOGLE.
Disabling Google Account Sign-in Prompts in Google settings does nothing; at least not in Firefox. I’ve always had that setting turned off. I get the ‘Sign In With Google’ pop up everywhere. Literally, everywhere.
Sign in disabled, even on a test machine that has never had Google used, it still happens. I HATE Google
My “Sign in with Google” prompt was already toggled off in the settings, but I am still getting the Pop up in Firefox. I am thinking about ridding my computer of any and all things Google!
Doesn’t work.
Even in Privacy Mode, never signed in on google account do this popups occur.
Why cant anyone write a good explanation how to block this?
On ublock or whatever adblocker you use, add the custom filter
||accounts.google.com/gsi/iframe
I do this……
I deleted my google account as I got so fed up with them, but I still get them on Firefox and iphone Safari one month later.
“If you have never signed-in to a Google account in the browser, then you won’t see the popups.”
I think this is incorrect. Define “never”. What about when I signed one time into a gmail account last month and then signed out . Do you mean that this singular event is stored on Firefox, and if so where and how?
“The first option is simple: sign-out of the active Google session in the browser that you are using, and you should not see the Google sign in popups anymore.”
Reponse: I am not signed in currently, and still get the popup.
“Derro”‘s solution with ublock origin seems to work.
It’s definitely incorrect. I see that “sign in with Google” prompt all the time, even when I use Firefox Klar (Focus) which is always in incognito mode – I have literally never signed in to Google on this browser yet it keeps prompting me to log into Google so that I can use Google sign in for sites like Twitter
See screenshot: https://imgur.com/a/jIv1O2l
thanks. one day when AI is really good, i’ll simply tell my operating system to block all jews and stuff like this won’t be so much of a problem. YE 24
With popups or not, same goes for “log in with Facebook” and so on, avoid those tracking tricks.
On mobile I get this all the time even though I browse privately and have never signed into Google on mobile. So, I really don’t get the explanation that it checks for a signed-in Google account before displaying the popup.
Using Ublock Origin
right click on that Google annoyance
scroll down to Ublock- mouse over——block element in frame- click
make sure all of it is selected [pink]- click – create …finished
shown in ”my filters” accounts.google.com###animated-container
I just use uMatrix to block 3rd party scripts like those.
Changing the toggle in Google doesn’t “fix” anything. The pop up still happens. Nobody checks if it even works. I have read E-bay allows this junk and must be monetizing the popup. As far as I can tell it’s browser related as it doesn’t happen in brave. Yes Google is violating #1 security rule.
None of those work; did you test them?
I did, and they worked on the test system.
A very helpful article, Mr. B. Thank you. Allow me to take this opportunity to wish you a Merry Christmas and a Happy, Healthy New Year.
With ad blockers you should use
||accounts.google.com/gsi/*$xmlhttprequest,script,third-party
because iframe is created by script, so it’s created after Google was contacted.
I remain signed in to Google on my Android phone because it’s just such a hassle to have sign in again just to update it. But I hardly ever use the phone for browsing and even if I do, I use Firefox private browsing mode.
Apart from that I can never understand why anyone would want to sign into a search engine. You get the same search results without signing in.
You seem to have missed the point that Google is so much more than a search engine. And anyway, if you are not signed in, those popups still appear. So uBlock Origin is again the only cure.
It’s Christmas eve, time for friendship, reconciliation. Let us love everyone, even those we’d be reluctant to :)
No hatred, I’ll love GAFAM, all of its components, their entrepreneurs, Google included.
I’ll love, try to, yet will avoid some of them, and that includes Google.
No Google means no Google account, means no Google products, means no Google tracking (provided the company and its numerous servers accessed as third-party practically everywhere are blocked) … means no Google sign-in pop-up.
Now, should I use Google products, have an account, one thing I’d avoid is using that account to register to a whatever Website together with remaining logged into the account when elsewhere than on a Google site. Between extreme positions (never and always) there is always a medium approach, and avoiding registration via a 3rd-party is one of them, essential IMO.
Merry Christmas to all :=)
A how to article written by Martin for a change…
I am still here wishing the old Ghacks comes back, when Martin was still fully in charge of the site…
@Martin
It’s “main purpose” is to build a more accurate advertising profile.
“Signing in with google” is breaking the #1 security rule. Don’t use the same username and password for multiple sites.
I’ve never “signed into” a browser on purpose and I don’t use chrome.