IP位置数据库
互联网上有一些免费数据库。但了解它们是如何形成的很有趣。你能推荐一些吗?
There are some free databases on the internet. But it's interesting to know, in what way they are formed. Can you suggest some?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MaxMind 有一个很好的描述:
MaxMind has a good description:
没有将 IP 地址转换为地理位置的公式。您可以通过 IP 地址的注册者获得一些线索。但这并不完美。属于 Google 或 HP 的地址块可能不会告诉您太多信息,因为它们分布在许多位置。查看到达地址的网络路径(沿途的路由器)可以提供更多线索。大多数地理定位数据库都是以这种方式编译的 - 使用有关邻近 IP 地址的已知信息并做出最佳猜测。一些提供商会通过要求您更正他们对您的 IP 地址所在位置的最佳猜测来获取信息。
There isn't a formula to convert IP address to geographic location. You get some clue through whom the IP address is registered to. That isn't perfect, though. A block of addresses belonging to Google or HP may not tell you much since they are spread over many locations. Looking at the network path to reach an address (routers along the way) gives some more clues. Most geolocation databases are compiled in this fashion - using known information about neighboring IP addresses and making a best guess. Some providers will solicit information by asking you to correct their best guess of where your IP address is located.