我可以根据用户的IP地址使用哪些服务来查找用户的位置? [英] What services can I used to find a user's location based on their IP address?

查看:106
本文介绍了我可以根据用户的IP地址使用哪些服务来查找用户的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您需要根据用户的IP地址来查找用户,可以使用哪些服务(免费和免费的服务都可以)?

If you need to locate a user based on their IP address, what services are available (free and not free services are fine)?

P.S.我了解到有些用户使用代理等,这意味着结果不是100%准确.没关系.

P.S. I understand that some users use proxies etc., that means the result is not 100% accurate. That's ok.

推荐答案

大多数地理位置服务都允许您将充满IP地址的数据库下载到城市或国家/地区地图.有些还提供免费(请求数量有限)或付费订阅的Web服务api.

Most geolocation services allow you to download a database full of IP Address to city or country maps. Some also provide web service apis for free (limited number of requests) or a paid subscription.

MaxMind 可以使用一项这样的服务可以自由确定用户的位置.他们的minFraud服务每天允许500次免费查询.

MaxMind has one such service that you can use which is free to determine the user's location. Their minFraud service allows 500 free queries per day.

他们在ASP中使用Web服务的示例

A sample for their web service in ASP

Dim objHttp, strQuery
strQuery = "http://geoip1.maxmind.com/a?l=" & license_key & _
    "&i=" & ipaddress
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHttp.open "GET", strQuery, false
objHttp.send
Response.Write objHttp.ResponseText
Set objHttp = Nothing

他们还提供了API,用于根据付费版本中的位置,卡号等确定信用卡欺诈的可能性.

They also offer APIs for determing credit card fraud probability based on location, card number, etc, in their paid version.

另一项服务是 ip2location . 约翰·米利金

此外, IPLigence 每天提供50个免费查询.

Also, IPLigence offers 50 free queries a day.

对于.NET Coders,有一个 IPAdressExtensions 模块(开源,免费,不需要Web服务) purekrome

For .NET Coders, there is the IPAdressExtensions module (open source, free and no web service required) purekrome

有关地理位置的更多信息可在Wikipedia上找到.

More info about geolocation is available on wikipedia.

这篇关于我可以根据用户的IP地址使用哪些服务来查找用户的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆