以编程方式确认手机号码的存在

发布于 2024-08-30 11:30:06 字数 89 浏览 11 评论 0原文

如何确认电话号码是否合法或是否已连接?我想防止用户使用虚假号码注册。

有没有办法以编程方式拨打电话或其他什么?或者查明手机是否处于活动状态、已连接?

How do I confirm that a phone number is legit, or that it is connected? I want to prevent users signing up with bogus numbers.

Is there a way to programmatically make a call or something? Or find out if the phone is alive, connected?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

┾廆蒐ゝ 2024-09-06 11:30:06

确保电话号码确实已连接的唯一方法是向他们发送一条带有唯一验证密钥的短信,然后让他们将其输入到您的网络表单中。

The only way you can be sure that the phone number is actually connected is to send them a text-message with a unique verification-key and then have them enter that in your web-form.

拥抱影子 2024-09-06 11:30:06

查看VoiceXML。该服务允许您通过读写 XML 与调用者进行交互。

此外,检查号码是否合法或已连接与证明该号码是用户的电话号码不同。他们可能会输入其他人的号码,甚至可能会输入一个恰好可用的随机电话号码。

Check out VoiceXML. That's a service that allows you to interact with a caller by reading and writing XML.

Also checking if a number is legit or connected isn't the same as proving that's the user's phone number. They could be entering a number of someone else that exists, or even a random phone number that happens to work.

夜雨飘雪 2024-09-06 11:30:06

这在很大程度上取决于手机号码所在的国家/地区。

例如,我知道德国的短信网关服务,它检查号码是否已连接(至少对于德国号码,也许也适用于其他欧洲国家)作为补充他们的短信发送服务。每次民意调查花费几美分。

您必须检查世界各地的短信网关,看看他们在该部门可以提供什么。

正如埃斯波所说,最安全、最简单的当然是发送确认短信。

This depends heavily on the country the mobile number is in.

I know a SMS Gateway service in Germany, for example, that checks out whether a number is connected (at least for german numbers, maybe for other european countries too) as an addition to their SMS delivery services. It costs a few cents per poll.

You would have to check with SMS gateways around the world to see what they can offer in that department.

The safest and simplest, as Espo says, is certainly to just send a confirmation SMS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文