# mod\_geoip

Source: https://zotonic.com/docs/1773/mod_geoip

URI: https://zotonic.com/id/1773

Language: en



Used to map IP addresses to geographical locations.

This modules uses the freely available MaxMind databases for the IP mapping. The database is updated automatically.

::: {.note title="Note"}
As the database is only once downloaded per Zotonic instance the license key is shared between all sites. It is not possible to have a specific per-site key.
:::

For downloading the database you need a License Key from MaxMind. The License Key can be generated after [registering with MaxMind](https://www.maxmind.com/en/geolite2/signup).

The obtained license key can be configured in the `erlang.config` file with:

```erlang
{locus, [
    {license_key, "YOUR_LICENSE_KEY"}
]}
```

The above license key can be overruled in the `zotonic.config` file using the `maxmind_license_key` key.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1773?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1773?language=en>)
