Geo-location query using GEOIP database and API

Source: Internet
Author: User
Tags geoip geoip database maxmind

GeoIP database: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz.

First, download the required resources on the Maxmind website

After downloading, we unzip it to D disk, specific installation document see GeoIP Legacy City Database Installation Instructions

Maxmind provides a variety of API interfaces, such as: Perl, Java, Python, C, PHP, C #, etc., we use C # (HTTPS://GITHUB.COM/MAXMIND/GEOIP-API-CSHARP2) here, This library was written using mono and downloaded into visual Studio.

Related information

Awstats Show Country Area plug-in GeoIP installation

I'll post an example tutorial on PHP later.

How PHP uses the GEOIP database

Geo-location query using GEOIP database and API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.