geoip

This pluggable module provides access to local IP geolocation service. It is implemented upon custom mentat.services.geoip module, which in turn uses the geolocation service GeoLite2 created by MaxMind. This module requires that GeoLite2 database files are installed locally on host machine.

Provided endpoints

/geoip/search

Endpoint providing search form for querying local IP geolocation service and formating result as HTML page.

  • Authentication: login required

  • Methods: GET

/api/geoip/search

Endpoint providing API search form for querying local IP geolocation service and formating result as JSON document.

  • Authentication: login required

  • Authorization: any role

  • Methods: GET, POST

/snippet/geoip/search

Endpoint providing API search form for querying local IP geolocation service and formating result as JSON document containing HTML snippets.

  • Authentication: login required

  • Authorization: any role

  • Methods: GET, POST