问题描述
有人知道确定传入的IP是否来自移动运营商的好方法(免费或付费)吗?
Does anybody know of a good way (free or paid) to determine if an incoming IP is from a mobile 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.
转到并将您的IP放入演示输入框(在首页上),您将看到可以获得的详细信息。这是您需要的API:
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,Kevin。
Rgds, Kevin.
这篇关于如何确定传入的IP地址是否来自移动运营商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!