Below is an example, you would add in the test IP of your choice in the value section. For the value you can either use your local IP address (this can be easily found by googling) or another location you wish to test. In the web.config file of your project’s solution (for MVC this will be in the web.config in your Admin application) add to the section to fake the IP address.Once you've downloaded your Maxmind database, put the database(s) in the proper folder location, and enable the settings from the documentation.
MAXMIND IP DATABASE HOW TO
How to test locally using CMSUserHostAddress
It is recommended that you create these folders in your projects Admin application (the CMS project) and then add the database files into the MaxMind folder as stated in the documentation. Out-of-the-box MVC sites will not have the required folder structure setup for MaxMind, therefore, you will need to create these folders to establish the following structure: ~/App_Data/CMSModules/WebAnalytics/MaxMind/.
MAXMIND IP DATABASE PLUS
In summary, you would have your GeoLite2 City or GeoIP2 City plus the ASN database file added to your MaxMind folder. To clarify, adding the ASN database would be in addition to your GeoLite2 City or GeoIP2 City database files. Optionally, as mentioned in the documentation, you can use the GeoLite 2 ASN database. To first setup geolocation with MaxMind, please go through the steps described in the Kentico documentation: Using geolocation for contacts. You will need to download either the free GeoLite2 City database or purchase the GeoIP2 City database which provides more accuracy and details. This setup will show you if MaxMind is returning data right out of the gate and will also provide you with some general setup tips for MVC and portal engine sites. This test was conducted on Kentico 12 instances but should work in all supported versions. Showing the top 5 popular GitHub repositories that depend on MaxMind.In this short article, I will give you a quick and easy way to test your project communication with MaxMind database locally, without the need for a publically accessible instance or proxy server of some kind which would normally be needed for accurate testing of Contact location.
MAXMIND IP DATABASE MANUAL
More information on how to use this Add-On is available in this manual This assumes that data files are in d:\MaxMind folder leave blank if you use App_Data and in your application configuration you can set blocking scope like this }).UseGeography(directory:new DirectoryInfo("d:\\MaxMind")) , domainName: new Uri("", UriKind.Absolute)
Services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey The Package adds functionality to NuGet package Interface geographically aware allowing you to block requests for certain countriesĪnd enables you to render a different result based on the region or country the request came from. Use MaxMind Geo data service or API keys to make the The runtime assemblies for libraries and applications that use Kentico Xperience API.Īn ASP.NET Core middleware for request filtering. The runtime assemblies for libraries and applications that use Kentico API.ĪPI for MaxMind minFraud Score and Insights web services Showing the top 5 NuGet packages that depend on MaxMind.GeoIP2: