如何以编程方式找到传入的HTTP请求的地理位置?地理位置、方式、HTTP

2023-09-06 22:05:24 作者:独揽帅氕

我知道网上有很多工具可用,但我想在内部工具,写引用或如何去做?甚至是可以做到的,或者是艰巨的任务?

I know there are many online tool available but I want to write in house tool, references or how to go about it? Or even it can be done or is a mammoth task?

推荐答案

您需要有所有IP地址的位置数据库。所以,无论你建立自己(一个真正的mammouth任务)的数据库,或者您使用外部服务。

You need to have a location database of all IP addresses. So, either you build a database yourself (a genuinely mammouth task) or you use an external service.

某些IP定位服务的有有API的,所以你可以调用然后从code。

Some IP location services have have APIs so you can call then from your code.