我如何知道服务器位于哪个状态?
我正在开发一个项目,该项目比较世界各地不同服务器上网站的加载时间。
在我的项目中,我需要在多个服务器上为网站购买一个位置,但我不知道服务器实际位于哪个国家/地区。 我在 Firefox 中发现了一个名为“flagfox”的附加组件(我与该程序无关,要检查它,请访问:http://flagfox.net/),表明该网站位于哪个国家/地区。
我想知道:
a) “flagfox”如何知道该网站位于哪个国家? (in 不是扩展名,例如 .com .uk)
b)我如何知道该网站位于该国本身的哪个位置,即在美国不是很有帮助,因为服务器可能位于纽约或洛杉矶,两者相隔几个时区。
c)如果我不知道a的答案,我如何验证来自“flagfox”或其他相关软件的数据是否可靠?
谢谢
i working on a project which compare between load time of websites on different server around the world.
in my project i need to buy a spot for a website in several servers but i don't know in which country the server is actually located.
i found an add-on in firefox called "flagfox" (i'm not related to the program, to check it visit: http://flagfox.net/) which indicate in which country the site is located.
i want to know:
a) how can "flagfox" know in which country the site is located? (in is not by the extention e.g .com .uk)
b) how can i know where in the country itself the site is located, i.e in the u.s.a is not very helpful because the server can be in new-york or in los angeles which are several time zones apart.
c) if i don't know the answer to a, how can i verify that the data from "flagfox" or other software for that matter, is reliable?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 Flagfox 网站:
您可以通过 http://www.maxmind.com/app/ip 访问 maxmind 数据集-位置。
From the Flagfox site:
You can get access to the maxmind dataset at http://www.maxmind.com/app/ip-location.
有一篇关于这个 这里,包含示例代码。它引用在此处提供的数据库。
也可以在此处获取该数据库。
There's a good article about this here, complete with sample code. It references a database that is available here.
The database can also be obtained here.