如何确定传入的 IP 地址是否来自移动运营商? [英] How to determine if incoming IP address is from a mobile carrier?

查看:14
本文介绍了如何确定传入的 IP 地址是否来自移动运营商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道确定传入 IP 是否来自移动运营商的好方法(免费或付费)?

Does anybody know of a good way (free or paid) to determine if an incoming IP is from a mobile carrier?

之前有一个关于此的问题:API 确定蜂窝运营商?

There was a previous question on this: API to determine cell carrier?

答案是使用 ISP 数据库并匹配名称".我想我希望在被问到这个问题后的一年半里,有人想出了更干净的东西?

and the answer was "use an ISP database and match names". I guess I'm hoping that in the year and a half since this question was asked somebody came up with something cleaner?

手指交叉

推荐答案

我有一个移动网站,我需要进行 IP 地理定位.我查看了几个 IP-> 位置数据库.其中之一是 MaxMind.他们有一个免费数据库,可提供城市级别的准确性,但他们也有付费数据库(费用相当合理),可为您提供更多详细信息,包括移动用户使用的移动运营商.

I have a mobile web site and I needed to do IP geo-location. I had a look at several IP->Location databases. One of which was MaxMind. They have a free database which provides city level accuracy, but they also have a paid for database (for a pretty reasonable fee) that gives you more detail, including what mobile carrier a mobile user is coming in on.

转到 http://www.maxmind.com 并将您的 IP 放入演示输入框(它的在首页),您将看到可以获得的详细信息.这是您需要的 API:http://www.maxmind.com/app/isp

Go to http://www.maxmind.com and put your IP into the demo entry box (its on front page), and you'll see the detail you can get. This is the API you would need from them: http://www.maxmind.com/app/isp

就像我说的,我只使用城市级别的详细信息数据库,因此不能保证移动运营商的覆盖范围.但在我最初的测试中,它似乎总是为我测试的英国、爱尔兰和亚洲手机返回良好的值.

Like I say, I only use the city level detail database so can't vouch for the coverage of the mobile carriers. But during my initial tests, it did always seem to return good values for the UK, Ireland, and Asian mobiles I tested.

Rgds,凯文.

这篇关于如何确定传入的 IP 地址是否来自移动运营商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆