Enable the Geolocation

  • Visit the Admin panelSettingsGeneralGeolocation
  • Check the 'Enable Geolocation' field.
  • Select a 'GeoIP Service' - NOTE: By selecting a GeoIP service, its website link (and if required, API/license key fields) will be shown.
  • (If available) Get the GeoIP service API key (or license key) and insert it in the geolocation settings form.
  • By selecting 'maxmind.com (Database)' as GeoIP service, you have to:
    1. Go to: https://dev.maxmind.com/geoip/geoip2/geolite2/
    2. Download the latest binary version of the 'GeoLite2-City.mmdb' database.
    3. Extract it in the Maxmind database folder at /storage/database/maxmind/ like this /storage/database/maxmind/GeoLite2-City.mmdb. You can replace the current file (if exists) to update the Maxmind database.

    NOTE: It's important to note that the lite (free) versions of the Maxmind databases are not accurate. Please check out https://support.maxmind.com/geolite-faq/ for more information.

  • If you want to redirect users to their country's website based on their IP address, you should leave blank the parameter "Default Country". IMPORTANT: When you reset this option by setting a default country, you need clear all your browser's session and cookies (and other data like: hosted app's data and cache, etc.) to see the effect of the change.
  • You are done.

Was this article helpful?

Thank you for your feedback!

Still need help? Create a support ticket

Create a Ticket