MDL Local Geo Lookup automatically downloads an IP geolocation database to your own server. All lookups happen locally — no external API calls on every page load.
No sign-up required for the default DB-IP source.
By default the plugin uses the free DB-IP City Lite database (CC BY 4.0), which requires no account or license key. Users who prefer MaxMind GeoLite2 can switch to it in Settings by entering a free license key.
Features:
[mdlgeo_visitor_info] shortcode to display visitor location on any page or postmdlgeo_get_visitor_geo_data() PHP function for use in themes and custom pluginsCF-Connecting-IP when Cloudflare headers are presentRequirements:
zlib, pharPrivacy:
Visitor location logging is disabled by default and must be explicitly enabled by the site admin in Settings. When enabled, visitor IP addresses and approximate locations are logged to a local file on your server. No data is sent to third-party services. Because these log entries are stored only against IP addresses and not durable user identifiers such as email addresses, the plugin does not integrate this log with WordPress personal data export or erasure tools. You are responsible for disclosing this in your site’s privacy policy.
This plugin connects to the following third-party services to download geolocation databases and libraries. No visitor data is transmitted to these services.
.mmdb format).https://download.db-ip.com/free/dbip-city-lite-{year}-{month}.mmdb.gz.mmdb format). Only used if the admin selects MaxMind as the database source and provides a license key.https://download.maxmind.com/app/geoip_download?...When visitor logging is enabled, this plugin logs visitor IP addresses and approximate geographic locations to a local file on your server. Logging is disabled by default and must be explicitly enabled by the site admin. No data is transmitted to external services by the plugin itself. Because the log is stored only against IP addresses and approximate location data, it is not connected to WordPress personal data export or erasure tools. You must disclose this data collection in your site’s privacy policy in accordance with applicable law (GDPR, CCPA, etc.).
This plugin uses the GeoLite2 database created by MaxMind, available from https://www.maxmind.com.