| 开发者 | mondaydigitallab |
|---|---|
| 更新时间 | 2026年7月23日 19:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0+ |
| 版权网址: | 版权信息 |
[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.zlib, pharmdl-local-geo-lookup folder to /wp-content/plugins/, or install directly from Plugins > Add New.Yes. The plugin uses the free DB-IP City Lite database by default. No account, no license key, no sign-up — it works immediately after activation.
The .mmdb file is stored in your WordPress uploads directory: wp-content/uploads/mdl-local-geo-lookup/. The filename depends on the selected source (DB-IP or MaxMind). The GeoIP2 PHP reader library is bundled inside the plugin folder and does not need to be downloaded separately.
By default, every 7 days. You can set any value between 1 and 30 days in the plugin settings. DB-IP publishes a new database on the first of each month. MaxMind publishes updates on the first Tuesday of each month.
The plugin tracks which source last downloaded the installed MMDB file. If there is a mismatch, the settings page displays a warning and prompts you to run a manual database update before relying on the data.
Yes. When Cloudflare is in front of your site, the plugin automatically reads the real visitor IP from the CF-Connecting-IP header.
Yes. Place the [mdlgeo_visitor_info] shortcode inside a hidden field in Elementor Forms, Contact Form 7, WPForms, Gravity Forms, or any HTML form. The visitor's detected location is submitted along with the form data.
When logging is enabled, each entry contains: serial number, timestamp, IP address, country, city, postal code, timezone, and coordinates. Logging is disabled by default.
No. An .htaccess file and an index.php file are created in the logs directory on activation to block direct web access.
The plugin is designed for single-site installations. It can be activated per-site on a multisite network, but network-wide activation is not officially supported.