WordPress.org

Plugin Directory

Live Visitor Monitor – Real-Time Visitor Monitoring with Smart IP Blocking

Live Visitor Monitor – Real-Time Visitor Monitoring with Smart IP Blocking

描述

Live Visitor Monitor provides real-time tracking and visualization of visitors on your WordPress site. See where your visitors are coming from on an interactive world map.

Key Features:

  • Real-time World Map – Visualize visitor locations on an interactive map with live markers
  • Live Visitor List – See active visitors with IP addresses, countries, cities, and pages visited in a sidebar
  • IP Blocking – Instantly block unwanted IP addresses from accessing your site with a dedicated Blocklist page
  • Geolocation – Automatic country, region, and city detection using IP geolocation (API or local database)
  • Auto-refresh – Dashboard updates every 5 seconds to show the latest visitors
  • Statistics Overlay – Real-time stats box showing online and active visitor counts
  • Comprehensive Settings – Full control over tracking, geolocation, privacy, and data management
  • Privacy Compliant – Includes GDPR compliance notices and IP anonymization options

How It Works:

The plugin automatically tracks visitors. Visitor data (IP address, current page, referrer) is sent to WordPress via AJAX and stored in the database. Geolocation data can be fetched from the bundled DB-IP Lite MMDB database, external IP geolocation APIs, or browser-provided coordinates when visitors allow location access. Results are cached for 1 hour to reduce API calls.

Live Visitor Monitor Pro

Need deeper reporting, bot controls, and local database features? Upgrade to Live Visitor Monitor Pro:

Pro Features:

  • Bot Detection – Detect suspicious automated traffic and common crawler patterns
  • AI Bot Detection – Identify common AI crawler and model-training bot signatures
  • Cautious Auto-Blocking – Optionally auto-block high-confidence unwanted bots while allowing known helpful crawlers
  • Bundled Local MMDB Database – Use the heavier local geolocation database only when Pro is installed and licensed
  • Advanced Analytics Dashboard – KPI cards, traffic graphics, daily visit trends, top pages, top referrers, top countries, unique IPs, and active visitor reporting
  • Dashboard Widgets – Show quick analytics summaries on the WordPress dashboard and Live Monitor dashboard
  • Visitor Log – Search visitor history by IP, location, page, referrer, and user agent
  • Visitor Log Retention Controls – Configure how many logs to keep, how long to keep them, rows per page, cleanup, and delete-all maintenance

External Resources

This plugin uses JavaScript Library & the following external resources:

DB-IP City Lite: This local MMDB database performs offline IP geolocation when available. The Lite database is licensed under Creative Commons Attribution 4.0 International License.

ipwho.is and ip-api.com: These services perform IP geolocation (country, region, city, coordinates) when geolocation is enabled and no local database result is available. Results are cached for one hour to reduce API calls.

OpenStreetMap Nominatim: This service performs reverse geocoding for browser-provided coordinates when visitors allow geolocation. Results are cached for one hour.

OpenStreetMap: This service provides world map tiles for the dashboard and is used only when the live map is enabled. It has no rate limits, sends no user data (only map tile requests), and can be avoided by disabling the live map in Settings.

Note: External geolocation requests can be avoided by using the bundled local MMDB database and disabling browser coordinate lookup. The plugin will still track visitors, but location accuracy depends on the available source.

屏幕截图

安装

Install directly from WordPress Repository:

  1. Go to Plugins > Add New in your WordPress dashboard and search for Live Visitor Monitor.
  2. Click Install Now, then Activate.
  3. Navigate to Live Monitor in the admin menu to access the dashboard.
  4. Configure your preferences in Live Monitor > Settings, including tracking, geolocation, and privacy options.

常见问题

How often does the map update?

The dashboard automatically refreshes every 5 seconds to show the latest active visitors. You can also manually refresh using the refresh button.

What defines an “active” visitor?

Visitors show as live while their browser is actively pinging the site. After leaving, they remain visible for up to 15 minutes so recent traffic is still easy to review.

How does IP blocking work?

When you block an IP address, the plugin checks every page load and prevents access with a 403 error. Blocked IPs are stored in the database and persist across sessions.

Is geolocation data accurate?

Geolocation accuracy depends on the IP geolocation service used. When using ip-api.com (external API), accuracy is generally good for country-level data, but city-level data may vary. The plugin caches results for 1 hour to reduce API calls. For better accuracy and no rate limits, you can use a local MaxMind GeoLite2 database.

What external services does this plugin use?

See the “External Resources” section above for complete details. The plugin uses:
* ip-api.com – For geolocation lookups (optional, can be disabled)
* OpenStreetMap – For map tiles (optional, can be disabled)

The geolocation and map services can be completely avoided by disabling geolocation and the live map in Settings. The plugin will continue to track visitors without location data or map visualization.

Does this work with caching plugins?

The tracking script runs in the footer, so it should work with most caching plugins. However, if you’re using aggressive page caching, you may need to exclude the tracking script from cache.

What data is collected?

The plugin collects: IP address, country, region, city, latitude/longitude, current page URL, referrer URL, and user agent. This data is stored in your WordPress database. Geolocation lookups may be sent to ip-api.com (if enabled and not using local database). You can disable geolocation entirely in Settings to avoid any external API calls.

How does caching work?

Geolocation results are cached using WordPress transients for 1 hour. This means:
* The same IP address will only trigger one API call per hour
* Cached results are served instantly without external requests
* Cache is automatically cleared after 1 hour
* This significantly reduces API usage and improves performance

What database tables are created?

The plugin creates two database tables on activation:
* wp_lvmon8s_visitors – Stores visitor tracking data (IP, location, page, time, etc.)
* wp_lvmon8s_blocked – Stores blocked IP addresses

Both tables are automatically removed when the plugin is uninstalled.

Can I exclude certain user roles from tracking?

Currently, the plugin can exclude all logged-in WordPress users. Role-specific exclusions may be added in future versions.

What happens when I disable data collection?

When data collection is disabled:
* No visitor tracking occurs
* No data is stored in the database
* The dashboard will show no visitors
* The tracking script is not injected into pages

How do I set up a local GeoIP database?

  1. Install the GeoIP2 PHP library: composer require geoip2/geoip2
  2. Download GeoLite2-City.mmdb from MaxMind (requires free account)
  3. Upload the file to: wp-content/uploads/lvmon8s-geoip/GeoLite2-City.mmdb
  4. Enable “Use Local GeoIP Database” in Settings

Note: The GeoIP2 library must be installed at the WordPress root level or via Composer autoloader.

评价

此插件暂无评价。

贡献者及开发者

「Live Visitor Monitor – Real-Time Visitor Monitoring with Smart IP Blocking」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.1

  • Updated WordPress compatibility to 7.0.
  • Fixed live visitor timing so active visitors show as live and recently-left visitors remain visible for 15 minutes.
  • Added blinking live markers on the map for visitors currently viewing the site.
  • Added browser location support and reverse geocoding for more accurate live map markers when visitors allow geolocation.
  • Added click-to-zoom behavior for Active Visitors and replaced visible IP text with country/location details.
  • Added browser-side IP location fallback for local/private IP environments.

1.0.0

  • Initial release with real-time visitor tracking