检测在ASP.NET中的HTTP请求的/估计国家 [英] Detect/estimate country of a http-request in ASP.NET
问题描述
我在寻找方法来检测/估算其中的 http请求在即将在国家 ASP.NET 。< BR>
我知道有与服务/国家查找一些解决方案,但我从来没有使用过的。结果
结果
我在寻找小/清洁解决方案。结果
它是帮助别人填写表格,因此不会有100%准确。
结果
I'm looking for ways to detect/estimate the country from which a http-request is coming in ASP.NET.
I know there are some solutions with services/country lookups but I never used one.
I'm looking for small/clean solutions.
It's for helping someone filling out a form so it does not have to be 100% accurate.
在此先感谢..
推荐答案
您可以使用可用的Web服务中的一个来匹配传入的请求到全国各地。
You can use one of available web services to match an incoming request to a country.
否则,你可能会决定抢的MaxMind数据库文件( GEOLITE上国家),从该文件中读取您应用程序并执行的匹配。因此,你会独立于第三方服务,只有定期更新拉动为数据库文件。
Otherwise you may decide to grab the MaxMind database file (GeoLite Country), read from this file in your application and perform a match. Thus you will be independent from a third-party service, only pulling regularly updates for the database file.
还检查了类似的问题:
<一个href=\"http://stackoverflow.com/questions/1247238/geolocation-web-service-recommendations\">Geolocation Web服务的建议
这篇关于检测在ASP.NET中的HTTP请求的/估计国家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!