Detect/estimate country of a http-request in ASP.NET

后端 未结 5 2263
没有蜡笔的小新
没有蜡笔的小新 2020-12-14 10:15

I\'m looking for ways to detect/estimate the country from which a http-request is coming in ASP.NET.
I know there are

5条回答
  •  臣服心动
    2020-12-14 11:19

    You can use one of available web services to match an incoming request to a country.

    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.

    Also check out similar questions:

    Geolocation web service recommendations

    Know a good IP address Geolocation Service?

提交回复
热议问题