有没有任何可能的方法来找到使用脚本语言PHP的国家的名称? [英] Is there any possible way to find the name of the country using IP with scripting language PHP?

查看:169
本文介绍了有没有任何可能的方法来找到使用脚本语言PHP的国家的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何可能的方式使用脚本语言PHP使用IP来查找国家/地区的名称? 解决方案

根据您的需要在预算水平和准确性水平上有几个选择:

IPGeo: www.ipgeo.com (免费选项)



MaxMind GeoIP: http://www.maxmind.com/ (免费选项)



Quova: http://quova.com/ (付费) b
$ b

NetAcuity by Digital Element / Envoy: http://www.digital-element.com/ (付费)

Digital Envoy是知识产权智能领域的发明者,拥有所有提供商最丰富的数据集,并被视为行业领导者。他们提供企业级的解决方案和性能,这可能是也可能不是你想要的。如果你感兴趣的是国家级数据,那么大多数这些提供商应该能够满足你的需求(精确性),因为从技术的角度来看,找到IP地址的国家并不困难。如果您的预算是免费的,那么我的建议就是使用MaxMind提供的数据。



如果顺其自然,您会发现自己需要更细粒度的地理数据(即城市级别的数据),那么这些提供商之间的准确度差异很大,优先考虑MaxMind和Digital Envoy,Digital Envoy拥有最好的整体解决方案。 strong>编辑:



关于用户对代理的评论之一,这可能是一个问题。有些网络(如AOL)通过代理路由所有数据。通常,该代理位于与始发连接相同的国家/地区,因此国家/地区级别的数据与用户未使用代理时一样准确。显然,如果有人想在国外使用代理服务器,他们可以,但这不是一般互联网流量的规则。有些提供商提供代理数据库或已知为代理的标志范围,以便用户可以选择是否信任它。


Is there any possible way to find the name of the country using IP with scripting language PHP ?

解决方案

Depending on your needs at a budget level and an accuracy level there are a few options:

IPGeo: www.ipgeo.com (Free option)

MaxMind GeoIP:http://www.maxmind.com/ (Free option)

Quova: http://quova.com/ (Paid)

NetAcuity by Digital Element/Envoy: http://www.digital-element.com/ (Paid)

Digital Envoy is the inventor of the IP Intelligence space, has the richest dataset of all the providers, and is considered the industry leader. They offer enterprise level solutions and performance, which may or may not be what you're looking for. If all you're interested in is country level data, then most of these providers should be able to suit your needs (accuracy wise) as finding the country of the IP address is not difficult from a technical standpoint. If your budget is free, then my advice would be to use the data provided by MaxMind.

If down the road, you find yourself in need of more granular geographic data (i.e. city level data), then the accuracy between these providers varies greatly with the upper hand going to MaxMind and Digital Envoy, with Digital Envoy having the best overall solution.

Edit:

In regard to one of the users comments about proxies, this can be an issue. Some networks (such as AOL) route all their data through a proxy. Usually that proxy is located within the same country as the originating connection, so the country level data is as accurate as if the user wasn't using a proxy. Obviously if someone wants to use a proxy outside their country they can, but this is the exception not the rule for general internet traffic. Some providers offer a proxy database, or flag ranges known to be proxies, so that you as the user can choose whether or not to trust it for your purposes.

这篇关于有没有任何可能的方法来找到使用脚本语言PHP的国家的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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