GeoIP Legacy Codes

The page contains lists of the ISO 3166 and MaxMind-specific codes used by legacy GeoIP products.

ISO 3166 Country Codes

Below are ISO codes for countries in GeoIP legacy databases, with the addition of MaxMind-specific codes for Europe, Asia Pacific Region, Anonymous Proxy and Satellite Provider.

Continents for these countries.

Please note that EU and AP codes are only used when a specific country code has not been designated. Blocking or re-directing by EU or AP will only affect a small portion of IP addresses. Instead, you should list the countries you want to block/re-direct individually.

Also, the O1 Other Country code is only used in the GeoIP City country subset databases.

You may also download these codes in CSV format.

ISO 3166 Country Codes with Associated Continent

Below is a list of each country and the associated continent by ISO-3166 code.

This data is also available through the GeoIP_country_continent array in the C API.

For more information about special country codes like A1, A2, O1, EU or AP, please visit see the ISO 3166 Country Codes above.

You may also download these codes in CSV format.

MaxMind-Specific Codes for Europe

Below are MaxMind-specific codes for Europe.

You may also download these codes in CSV format.

MaxMind-Specific Codes for the Asia/Pacific Region

Below are MaxMind-specific codes for the Asia/Pacific Region.

You may also download these codes in CSV format.

This page was last updated on January 14, 2022.