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