Rails 2.3 的良好独立 GeoIP 解决方案是什么?
我们目前正在使用 geokit 来确定用户的原籍国,但我们担心我们将要生成的查询。由于我们的大多数访问者都是一次性的,因此仅缓存结果是不够的;还需要缓存结果。我们需要有自己的查找表的东西。是否有一个我们可以经常提取的免费数据库?还是有我们没有考虑过的替代方案?
We're currently using geokit to determine our users' countries of origin, but we're concerned about the volumens of queries we're going to generate. Since most of our visitors are one-offs, just caching the results isn't sufficient; we need something with its own look-up table. Is there a freely available database we can pull from every so often? Or is there an alternative we haven't considered?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看到这个问题后,我们选择了MaxMind GeoLite Country 其中有一个免费的 IP 到国家地图,可以 CSV 格式下载。显然,它对 AOL 用户来说存在一些问题,但到目前为止,它已经足够满足我们的目的了。
After seeing this question we went with MaxMind GeoLite Country which has a free IP-to-country map downloadable in CSV format. Apparently it has some issues with AOL users but it's been good enough for our purposes so far.
您是否考虑过 Geonames ?
Have you considered Geonames ?