如何根据某个IP获取国家/地区? [英] How to get the Country according to a certain IP?
本文介绍了如何根据某个IP获取国家/地区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道检索给定IP地址的国家/地区的简单方法?最好是ISO_3166-1格式?
Does anyone know of a simple way to retrieve the country for a given IP Address? Preferably in ISO_3166-1 format?
推荐答案
很多人(包括我的公司)似乎都使用MaxMind GeoIP。
A lot of people (including my company) seem to use MaxMind GeoIP.
他们有免费版 GeoLite 这不如付费版本准确,但如果你只是简单的事情,它可能已经足够了。
They have a free version GeoLite which is not as accurate as the paid version, but if you're just after something simple, it may be good enough.
这篇关于如何根据某个IP获取国家/地区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文