Google Workspace Blocks Legit Domains with a Broken Regex Blocklist
A developer discovers Google Workspace's sign-up page rejects valid domains like web.example.com because of a hardcoded regex list of 'email providers' — and the fix is a frontend-only bypass.
Signing up for Google Workspace should be boring. For one developer, it turned into a week-long support saga after Google's sign-up form rejected their company domain with the cryptic error: “Enter a valid domain name instead of an email provider.”
The domain in question was a premium .one domain with no history of abuse. The developer checked domain history, scoured Google's documentation (nothing), and found community threads — including one from the Ukrainian Ministry of Economy, whose me.gov.ua domain hit the same wall. Google's support loop was the usual: “try another browser,” “try another device,” record a video. After escalation, a product engineer suggested — seriously — using a different domain.
So the developer did what any self-respecting engineer would do: they opened DevTools and read the sign-up page's source. The error comes from a client-side validation function that checks the entered domain against a hardcoded regex list of email providers. The list includes obvious entries like gmail\..* and hotmail\..*, but also some real head-scratchers:
web\..*— blocks any domain starting withweb., which is what caught the author's domain.me\..*— blocks any domain starting withme., which is whyme.gov.uafailed.alice\..*— presumably for Alice, the email service? No one knows.mail\..{1,3}(\..{2})?$— a regex that matchesmail.followed by 1-3 characters and an optional TLD, which would catchmail.iobut alsomail.abc(if that were a valid TLD).
The full list is a mess of hundreds of entries, mixing real providers, dead services, and random domains like teleworm.com and ii-ii-ii-ii.com. The validation function is simple: if the domain matches any of these patterns (case-insensitive, anchored at the start), it's rejected.
The kicker: this is frontend-only validation. The developer disabled the function in the browser and completed sign-up without issue. No server-side check exists. So the entire blocklist is a UX speed bump, not a security measure — and it's actively rejecting legitimate businesses.
Google has known about this for months. The community thread with the Ukrainian Ministry of Economy is from earlier in 2025, and the author's own case went through multiple support tiers. As of August 2026, the issue is still present.
The workaround is trivial for anyone comfortable with DevTools, but that's not the point. A company like Google shipping a hardcoded regex list that blocks web.* domains — and then telling customers to just pick a different domain — is embarrassing. The fix is a one-line change to the regex or, better, moving validation server-side where it can be corrected without a frontend deploy.
For now, if you hit this error, you have two options: fight Google support for a week, or open DevTools, find the _.Au function, and set it to return false. The latter is faster.
Google's product engineers suggested using a different domain because their system wrongly flagged a legitimate domain — and they don't even know why.
Discussion
0 Comments
Be the first to start the discussion.