How to programmatically find geo location of incoming http request? [closed]

ε祈祈猫儿з 提交于 2020-01-13 11:52:57

问题


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?


回答1:


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.

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



来源:https://stackoverflow.com/questions/6006915/how-to-programmatically-find-geo-location-of-incoming-http-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!