K Khan
OMVPPaaS CMS Administrator Certification
Oct 6, 2016
visibility 7383
star star star star star
(3 votes)

EPi Server Extension for Maxmind GeoLite2

The geographic location database included in Episerver CMS contains geographic information created by MaxMind and is depending on a legacy database GeoLiteCity.Dat. Since from years no further development has been carried out on this provider, even the documentation in itself contains legace information :). Max mind offers now GeoLite2 in mmdb/csv format. 

GeoLite2 databases are free IP geolocation databases comparable to, but less accurate than, MaxMind’s GeoIP2 (Paid version) databases. These are updated on the first Tuesday of each month. MaxMind does not provide official support for the free GeoLite2 databases. If you have questions about the GeoLite2 databases or GeoIP2 APIs, please see stackoverflow’s GeoIP questions and answers. The GeoLite2 City database now includes Accuracy Radius data and works with IPV4 ip addresses.

A plugin will be available that can replace existing geo location provider. EPiServer's Geo Location related Visitor groups are dependent on this.

Code can be reviewed on Git. Any Comments are welcome

After some testing, This will be available on nuget.episerver.com to download. Following settings will change.

<geolocation defaultProvider="maxmind">
      <providers>
        <!--add name="maxmind" type="EPiServer.Personalization.Providers.MaxMind.GeolocationProvider, EPiServer.ApplicationModules" databaseFileName="App_Data\GeoLiteCity.dat" /-->
        <add name="maxmind" type="EPiServer.Extensions.Maxmind.GeoIp.Provider.MaxmindGeoIp2, EPiServer.Extensions.Maxmind.GeoIp" databaseFileName="App_Data\GeoLite2-City.mmdb" />
      </providers>
    </geolocation>
Oct 06, 2016

Comments

nitin anand
nitin anand Oct 17, 2017 10:59 AM

I have an old episerver 7 project where geo location criteria seems to be not working. I m suing GeoLiteCity.dat version in project. Do u have any clue why is this so?

K Khan
K Khan Oct 17, 2017 12:06 PM

I can have a look at the weekend, I did and tested this CMS 9+, but theoretically, it should work with 7 also.

/K

K Khan
K Khan Oct 17, 2017 03:14 PM

You will need probably following settings :)





error Please login to comment.
Latest blogs
Making Built-in CMS Categories Queryable in Optimizely Graph (CMS 13 PaaS)

With Optimizely CMS 13 PaaS, Optimizely Graph replaces Search & Navigation as the content query engine. However, if your existing CMS solution reli...

Mardy | Nov 10, 2026

Default to All Properties View for Non-Visual Content in Optimizely CMS 13

Optimizely CMS 13 opens every content item in Visual Builder by default. That works well for pages and

Adnan Zameer | Nov 10, 2026 |

The SharePoint Connector for Optimizely CMS 11 is Now Open-Source

Hello everyone, Today we are announcing that we have open-sourced Optimizely Connect for SharePoint, the connector that enables integration between...

Bien Nguyen | Nov 10, 2026

CMS 12 after 10 November: three paths and how to choose

.NET 8 and 9 support ends on 10 November 2026. Three paths for Optimizely CMS 12 sites: CMS 12 on .NET 10, CMS 13 or CMS (SaaS), compared.

Matthew Dunn | Nov 10, 2026 |

From Zero to App Directory: Building an Optimizely SaaS CMS App with OCP

A hands-on guide to extending the SaaS CMS editor with Optimizely Connect Platform (OCP): a sidebar extension, a secure backend function, the CMS...

Chirag Khanna | Nov 9, 2026 |

A note on using async computed fields with Optimizely Graph

Computed fields can be async, but do they work smoothly with the Graph C# SDK?

Johan Kronberg | Nov 9, 2026 |