跳到主内容
@wquguru
精选70Hacker News Best(web_list)技巧与观点

Google Workspace 注册因前端校验正则误判域名

Google Workspace 误判域名邮箱提供商

原文
发到 X

Google Workspace thinks my domain is an email provider

Google Workspace 认为我的域名是一个电子邮件提供商

Published Oct 7, 2025 | Updated Aug 23, 2026

发布于 2025 年 10 月 7 日 | 更新于 2026 年 8 月 23 日

Read by ...

阅读人数:...

Update: As of August 2026, this issue is still present.

更新:截至 2026 年 8 月,此问题仍然存在。

I was creating a Google Workspace account for my company, as everyone knows, it’s a pretty straightforward sign-up process, until I’m hit with a weird, confusing error when I type my domain name:

我正在为我的公司创建 Google Workspace 账户。众所周知,注册过程相当简单直接,直到我在输入域名时遇到了一个奇怪且令人困惑的错误:

“Enter a valid domain name instead of an email provider”

“请输入有效的域名,而不是电子邮件提供商”

Huh? An email provider? What does this mean?

什么?电子邮件提供商?这是什么意思?

I thought maybe my domain was previously used as an email provider, so I look up the history of the domain, but nope, that’s not it.

我想也许我的域名之前曾被用作电子邮件提供商,于是我查询了该域名的历史,但结果并非如此。

I look up the error and find no official documentation by Google. However, I see that I’m not the only one to have come across it, there are a few community threads posted by people asking for help.

我搜索了这个错误信息,但没有找到 Google 的官方文档。不过,我发现我不是唯一一个遇到这个问题的人,有一些社区帖子是人们在寻求帮助。

Believe it or not, one of those threads was by the Ukrainian Ministry of Economy; they were getting the same error for their domain. And of course, the so-called “experts” of the community provide the most useless response as always:

信不信由你,其中一条帖子来自乌克兰经济部;他们的域名也遇到了同样的错误。当然,社区里所谓的“专家”一如既往地提供了最无用的回复:

Left with no solution, I had to contact Google Workspace support. After being asked by multiple agents “Have you tried to create this to another browser?”, when I had already explained to them that I did, they transferred me to their high-level support specialist, Karen, who again asked me to try to sign up using another device, and I told her, again, that I have tried.

在没有任何解决方案的情况下,我不得不联系 Google Workspace 支持团队。在被多位客服人员反复询问“你有没有尝试在其他浏览器中创建?”之后,尽管我已经向他们解释过我已经试过了,他们还是将我转接给了高级支持专家 Karen。Karen 再次要求我尝试使用其他设备注册,而我又一次告诉她我已经试过了。

Then she asked me to record a video and wait for their product engineers to review it, and I did, and a few hours later I get an email:

然后她让我录制一段视频并等待他们的产品工程师审核,我照做了。几个小时后,我收到了一封邮件:

Ok, I give it a try, and nope, the issue still persists.

好吧,我试了一下,但不行,问题依然存在。

One week later, I receive another email:

一周后,我收到了另一封邮件:

So let me get this right: they are suggesting that I use another domain for my company because their system WRONGLY flagged my legitimate domain, and they don’t even know exactly why.

所以让我确认一下:他们建议我为公司使用另一个域名,因为他们的系统错误地将我合法的域名标记为有问题,而且他们甚至不知道具体原因。

Just for context, this is a premium domain with a very high premium renewal fee, no history of abuse obviously. And the .one TLD is a legit TLD used by legit businesses.

顺便提一下,这是一个高价域名,续订费用非常高,显然没有滥用历史。而且 .one 顶级域名(TLD)是被合法企业使用的正规顶级域名。

It seems like even their product engineers gave up and went ahead and gave a lazy response.

看起来连他们的产品工程师都放弃了,转而给出了一个敷衍的回复。

After replying with an angry response, left with no solution, I was about to ditch Google completely and head over to Microsoft, but I thought I would give it one last try and take the matter into my own hands.

在愤怒地回复后,由于没有其他解决方案,我正准备彻底放弃 Google 转向 Microsoft,但我想了想,决定再做最后一次尝试,把这件事掌握在自己手中。

I debug the source code of their sign-up page, and I find that the error is triggered by a local input validation function. They are checking the domain against a regex list of what seems to be email providers, though looking closely, there are a lot of weird entries on the list, one of which is web\\..*, the culprit preventing me from signing up my domain.

我调试了他们注册页面的源代码,发现错误是由一个本地输入验证函数触发的。他们正在使用正则表达式列表来检查域名,该列表似乎列出了电子邮件提供商,但仔细一看,列表中有很多奇怪的条目,其中一个是 web\\..*,正是这个条目阻止了我使用自己的域名进行注册。

So apparently, engineers at Google decided that all web.[tld] domains are email providers…

显然,Google 的工程师们认为所有 web.[tld] 域名都是电子邮件提供商……

And the entry me\\..* prevents the Ukrainian Ministry of Economy’s domain, me.gov.ua, from being accepted. Just because its subdomain is me.

而 me\\..* 这一条目导致乌克兰经济部的域名 me.gov.ua 无法被接受。仅仅因为它的子域名是 me。

One other entry is alice\\..*-not sure what’s up with that.

另一个条目是 alice\\..*——不太清楚这是什么情况。

Here’s the full code snippet from the Google Workspace sign-up page for those interested:

以下是 Google Workspace 注册页面的完整代码片段,供感兴趣的人参考:

代码 · 7
var DHa, EHa;
DHa = "gmail\\..* hotmail\\..* yahoo\\..* myyahoo\\.com outlook\\..* aol\\..* inbox\\..* fastmail\\..* mail\\..{1,3}(\\..{2})?$ rediffmail\\..* lycos\\..* att\\..* comcast\\.net verizon\\..* talktalk\\..* laposte\\..* gmx\\..* web\\..* bk\\..* yandex\\..* rambler\\..* pochta\\..* live\\..* cox\\..* bellsouth\\..* me\\..* earthlink\\..* sbcglobal\\..* qq\\..* ceznam\\..* 163\\..* 126\\..* free\\..* sfr\\..* wanadoo\\..* aruba\\..* terra\\..* btinternet\\..* alice\\..* libero\\..* telenet\\..* corp\\.terra\\.com\\.co mac\\.com webstarts\\.com googlemail\\.com msn\\.com teleworm\\.com isbn10\\.net isbn13\\.net ymail\\.com mailinator\\.com pookmail\\.com trashymail\\.com dodgit\\.com spambob\\.com dotarai\\.co\\.th appspeople\\.dk indiamart\\.com pkt\\.pl naver\\.com seznam\\.cz hemsida24\\.se shaw\\.ca ncs\\.com\\.sg rogers\\.com rocketmail\\.com ukr\\.net charter\\.net uol\\.com\\.br ya\\.ru bigpond\\.com idwebhost\\.com vkios\\.com registar\\.com cpasitesolutions\\.com optonline\\.net iridiuminteractive\\.com data-typing-earns\\.info smartpillars\\.com nate\\.com list\\.ru o2\\.pl riaenjolie\\.com ii-ii-ii-ii\\.com wp\\.pl therapysites\\.com mef\\.gob\\.pe theiconweb\\.com hanmail\\.net nordicweb\\.com havealook\\.com ig\\.com\\.br skepy\\.com nameisp\\.com optusnet\\.com\\.au creativemotiondesign nifty\\.com ntlworld\\.com petamatic\\.com telus\\.net msa\\.hinet\\.net sympatico\\.ca bojanowski\\.pl bing\\.com zlatestranky\\.cz xtra\\.co\\.nz sina\\.com bluewin\\.ch bol\\.com\\.br centrum\\.cz mindspring\\.com juno\\.com yourha\\.com photobiz\\.com aim\\.com videotron\\.ca blueyonder\\.co\\.uk email\\.cz tiscali\\.it tiscali\\.co\\.uk hosting\\.com\\.pe in\\.com teamunify\\.com sky\\.com idium\\.no family-address\\.ru pelsoftlabs\\.in pobox\\.com sakaryarehberim\\.com email\\.com iinet\\.net\\.au websites\\.ca globo\\.com code49\\.net xs4all\\.nl windowslive\\.com usa\\.net webtel\\.in bigpond\\.net\\.au vip\\.qq\\.com roadrunner\\.com pacbell\\.net sohu\\.com usa\\.com i\\.ua embarqmail\\.com batesville\\.com gobiernoenlinea\\.gov\\..* foxmail\\.com internode\\.on\\.net abv\\.bg paran\\.com t-online\\.de cfl\\.rr\\.com 139\\.com icloud\\.com newmail\\.ru nightmail\\.ru nm\\.ru pop3\\.ru rbcmail\\.ru smtp\\.ru hushmail\\.com aliceadsl\\.fr arcor\\.de centurytel\\.net chello\\.nl club-internet\\.fr facebook\\.com freenet\\.de frontiernet\\.net hetnet\\.nl home\\.nl neuf\\.fr orange\\.fr planet\\.nl skynet\\.be tin\\.it virgilio\\.it voila\\.fr windstream\\.net yahoogroups\\.com zonnet\\.nl proton\\.me protonmail\\.com protonmail\\.ch pm\\.me .*\\.ocn\\.ne\\.jp ocn\\.ne\\.jp .*\\.plala\\.or\\.jp plala\\.or\\.jp .*\\.biglobe\\.ne\\.jp biglobe\\.ne\\.jp .*\\.so-net\\.ne\\.jp so-net\\.ne\\.jp".split(" ");
EHa = "att.com sfr.com terra.co inbox.kitchen alice.app live.space live.lk live.synxis.com live.ink".split(" ");
 _.Au = function(a) {
     return EHa.includes(a) ? !1 : DHa.some(b => (b = a.match(b)) && b.index === 0)
 }
 ;
代码 · 7
var DHa, EHa;
DHa = "gmail\\..* hotmail\\..* yahoo\\..* myyahoo\\.com outlook\\..* aol\\..* inbox\\..* fastmail\\..* mail\\..{1,3}(\\..{2})?$ rediffmail\\..* lycos\\..* att\\..* comcast\\.net verizon\\..* talktalk\\..* laposte\\..* gmx\\..* web\\..* bk\\..* yandex\\..* rambler\\..* pochta\\..* live\\..* cox\\..* bellsouth\\..* me\\..* earthlink\\..* sbcglobal\\..* qq\\..* ceznam\\..* 163\\..* 126\\..* free\\..* sfr\\..* wanadoo\\..* aruba\\..* terra\\..* btinternet\\..* alice\\..* libero\\..* telenet\\..* corp\\.terra\\.com\\.co mac\\.com webstarts\\.com googlemail\\.com msn\\.com teleworm\\.com isbn10\\.net isbn13\\.net ymail\\.com mailinator\\.com pookmail\\.com trashymail\\.com dodgit\\.com spambob\\.com dotarai\\.co\\.th appspeople\\.dk indiamart\\.com pkt\\.pl naver\\.com seznam\\.cz hemsida24\\.se shaw\\.ca ncs\\.com\\.sg rogers\\.com rocketmail\\.com ukr\\.net charter\\.net uol\\.com\\.br ya\\.ru bigpond\\.com idwebhost\\.com vkios\\.com registar\\.com cpasitesolutions\\.com optonline\\.net iridiuminteractive\\.com data-typing-earns\\.info smartpillars\\.com nate\\.com list\\.ru o2\\.pl riaenjolie\\.com ii-ii-ii-ii\\.com wp\\.pl therapysites\\.com mef\\.gob\\.pe theiconweb\\.com hanmail\\.net nordicweb\\.com havealook\\.com ig\\.com\\.br skepy\\.com nameisp\\.com optusnet\\.com\\.au creativemotiondesign nifty\\.com ntlworld\\.com petamatic\\.com telus\\.net msa\\.hinet\\.net sympatico\\.ca bojanowski\\.pl bing\\.com zlatestranky\\.cz xtra\\.co\\.nz sina\\.com bluewin\\.ch bol\\.com\\.br centrum\\.cz mindspring\\.com juno\\.com yourha\\.com photobiz\\.com aim\\.com videotron\\.ca blueyonder\\.co\\.uk email\\.cz tiscali\\.it tiscali\\.co\\.uk hosting\\.com\\.pe in\\.com teamunify\\.com sky\\.com idium\\.no family-address\\.ru pelsoftlabs\\.in pobox\\.com sakaryarehberim\\.com email\\.com iinet\\.net\\.au websites\\.ca globo\\.com code49\\.net xs4all\\.nl windowslive\\.com usa\\.net webtel\\.in bigpond\\.net\\.au vip\\.qq\\.com roadrunner\\.com pacbell\\.net sohu\\.com usa\\.com i\\.ua embarqmail\\.com batesville\\.com gobiernoenlinea\\.gov\\..* foxmail\\.com internode\\.on\\.net abv\\.bg paran\\.com t-online\\.de cfl\\.rr\\.com 139\\.com icloud\\.com newmail\\.ru nightmail\\.ru nm\\.ru pop3\\.ru rbcmail\\.ru smtp\\.ru hushmail\\.com aliceadsl\\.fr arcor\\.de centurytel\\.net chello\\.nl club-internet\\.fr facebook\\.com freenet\\.de frontiernet\\.net hetnet\\.nl home\\.nl neuf\\.fr orange\\.fr planet\\.nl skynet\\.be tin\\.it virgilio\\.it voila\\.fr windstream\\.net yahoogroups\\.com zonnet\\.nl proton\\.me protonmail\\.com protonmail\\.ch pm\\.me .*\\.ocn\\.ne\\.jp ocn\\.ne\\.jp .*\\.plala\\.or\\.jp plala\\.or\\.jp .*\\.biglobe\\.ne\\.jp biglobe\\.ne\\.jp .*\\.so-net\\.ne\\.jp so-net\\.ne\\.jp".split(" ");
EHa = "att.com sfr.com terra.co inbox.kitchen alice.app live.space live.lk live.synxis.com live.ink".split(" ");
 _.Au = function(a) {
     return EHa.includes(a) ? !1 : DHa.some(b => (b = a.match(b)) && b.index === 0)
 }
 ;

The workaround

变通方法

I was curious what would happen if I disabled this function, so I did, and I was happy to find out that once disabled, I was able to continue the sign-up process for my domain successfully. That means that this was only a frontend validation, not a server-side one.

我好奇如果禁用这个函数会发生什么,于是我禁用了它,并很高兴地发现一旦禁用,我就能成功继续我的域名注册流程。这意味着这只是一个前端验证,而不是服务器端验证。

Though, I guess that the Ukrainian Ministry of Economy probably went for Microsoft 365 instead.

不过,我想乌克兰经济部可能转而选择了 Microsoft 365。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近