Home >Backend Development >PHP Tutorial >怎么区分国内外ip

怎么区分国内外ip

WBOY
WBOYOriginal
2016-06-06 20:21:263516browse

通过网上找的ip库,发下阿里云的ip访问服务器居然显示是国外ip,不知道有没有更好的ip库来区分国内外ip

回复内容:

通过网上找的ip库,发下阿里云的ip访问服务器居然显示是国外ip,不知道有没有更好的ip库来区分国内外ip

ipip.net

去微博私信老高 @高春辉

http://www.ipip.net/api.html 看下这个 示例,将得到的结果转换一下 就可以得到。

有一些站点提供了查询IP的服务,For Example http://apistore.baidu.com/apiworks/servicedetail/114.html

淘宝不是提供了ip的接口了嘛

淘宝IP地址库提供了 rest API
http://ip.taobao.com/

http://blog.hackroad.com/operations-engineer/linux_server/11806.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn