

Settings page — database source, license key, update interval, source alignment status, and visitor logging toggle.
MDL Local Geo Lookup is a lightweight WordPress geolocation plugin that detects visitor location using a local IP geolocation database — no external API calls, no per-request latency, no usage limits.
The plugin automatically downloads and maintains an IP-to-city database on your own server. Every GeoIP lookup runs locally, keeping your site fast and your visitor data private.
No sign-up required. The default DB-IP City Lite source works out of the box — no account, no license key, no configuration. Activate, click one button, done.
Prefer MaxMind?
Switch to GeoLite2 City in Settings by entering a free MaxMind license key.
Why Local Geolocation?
Most IP geolocation plugins call an external API on every page load. That adds latency, creates a single point of failure, and sends your visitor IPs to a third party. MDL Local Geo Lookup keeps everything on your server:
Features:
[mdlgeo_visitor_info] displays visitor country, city, region, postal code, timezone, and coordinates on any page or post.mdlgeo_get_visitor_geo_data() returns full location data for use in themes, plugins, or custom logic.CF-Connecting-IP when Cloudflare is active..htaccess and index.php to block direct web access.Use Cases:
Requirements:
zlib, pharThis plugin connects to third-party services only to download geolocation databases. No visitor data is transmitted to these services.
.mmdb format), licensed under CC BY 4.0.https://download.db-ip.com/free/dbip-city-lite-{year}-{month}.mmdb.gz.mmdb format). Only used when the admin selects MaxMind as the database source and provides a license key.https://download.maxmind.com/app/geoip_download?...When using the MaxMind source, this plugin uses the GeoLite2 database created by MaxMind, available from https://www.maxmind.com.
Visitor location logging is disabled by default and must be explicitly enabled by the site admin in Settings.
When enabled, each frontend page load by a non-logged-in visitor appends one line to a local log file containing the serial number, timestamp, IP address, country, city, postal code, timezone, and coordinates. All data is stored on your server. No data is transmitted to external services.
Because log entries are associated only with IP addresses — not persistent identifiers such as email addresses — the plugin does not register with WordPress personal data export or erasure tools. You are responsible for disclosing this data collection in your site’s privacy policy in accordance with applicable law (e.g., GDPR, CCPA).