Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

K Khan
Oct 30, 2016
(8 votes)

maxmind geolite2 on nuget

GeoIP2 is MaxMind's newest IP intelligence offering and is available in different flavours. EPiServer's geo location visitor group is depending on MaxMind's legacy database that they are not updating any more, following nuget package 'PixieEPiServerExtensionMaxMindGeoIP2' can be an option. It is based on MaxMind.Db and MaxMind.GeoIP2 apis. Code is available on GIT. It has been implemented as a service that potentially can be replace with your own geo location service also. Same service can be used out side of visitor group also


GeolocationMaxmindService service = new GeolocationMaxmindService();
            NameValueCollection config = new NameValueCollection();
            config.Add("databaseFileName", @"C:\EPiServer\Extension\Maxmind\GIT\Maxmind.GeoIP\GeoIpTests\db\GeoLite2-City.mmdb");
            var result = service.GetGeoLocation(IPAddress.Parse(""), config);

Following settings will require to use it in vistor group criteria.

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


Aria Zanganeh
Aria Zanganeh Oct 30, 2016 11:55 PM

Great job .. I was thinking about similar concept to use Google API! 

K Khan
K Khan Nov 3, 2016 09:42 AM

@Aria, Thanks, Glad, you like it.

Feb 1, 2017 10:30 AM

Good work.

Does the nuget Package contain a job to automatically update the Geo lite2 database?

K Khan
K Khan Feb 1, 2017 09:58 PM

@janaka, thanks for the feed back, it's not available at the time, but I will consider this. Personally I prefer controlled upload of these kind of files on prod.

Please login to comment.
Latest blogs
Optimizely DXP - Leader in Forrester Wave Q4 2023

There are many reasons why its nominated as leader including below but not limited to: Developers friendly - devs and architect love to implement i...

Yagnik Jadav | Dec 11, 2023 | Syndicated blog

Live on Optimizely CMS 12 and .NET 8

"Better late than never" is a fitting saying here. We've finally gotten around to updating the website to Optimizely CMS 12 and .NET 8!

Allan Thraen | Dec 10, 2023 | Syndicated blog

Date property editor

The Optimizely CMS has built-in DateTime property. When editing, the Editor selects both the date and the time. Sometimes we would like to configur...

Grzegorz Wiecheć | Dec 9, 2023 | Syndicated blog

Update related content

In this article, I will show simple code that allow to replace linked content with other content selected by the Editor. When deleting content whos...

Grzegorz Wiecheć | Dec 8, 2023 | Syndicated blog