=== AI Bot Monitor === Contributors: straightdigital Tags: ai, bots, analytics, seo, search, tracking, monitoring Requires at least: 5.8 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Logs and analyses visits from AI, Search & Social bots (ChatGPT, Perplexity, Googlebot, Bingbot, Paddle/Bytespider, etc.). Includes daily rotation, admin dashboard with AI-Layer overview (incl. Chrome/141), and one-click ZIP export. Works as a normal plugin or as a MU-plugin. == Description == **AI Bot Monitor** tracks and logs visits from major AI crawlers, search bots, and social preview bots — such as ChatGPT, Perplexity, Googlebot, Bingbot, Paddle/Bytespider, and Meta/Facebook. It offers a clean admin dashboard showing today’s activity, an **AI-Layer overview** highlighting key retrieval signatures (including **Chrome/141** used by modern AI assistants), automatic log rotation, and a one-click ZIP export. **Features:** * Detects AI, Search, and Social bots (ChatGPT, Perplexity, Googlebot, Bingbot, Paddle, etc.) * **AI-Layer overview** (incl. Chrome/141, GPTBot, CCBot, PerplexityBot) * Daily auto-rotation (keeps last 30 days) * Admin dashboard with recent activity table * ZIP export of all logs * Single + Multisite compatible * Works as standard plugin or MU-plugin * Path-safe (`plugin_dir_path()` / uploads dir) and sanitized inputs == Installation == 1. Upload the plugin to `/wp-content/plugins/ai-bot-monitor/`, or drop `ai-bot-monitor.php` into `/wp-content/mu-plugins/` to auto-load it. 2. Activate the plugin via **Plugins** (if not using MU mode). 3. Go to **Dashboard → AI Bot Monitor** to view logs and export ZIPs. == Frequently Asked Questions == = Where are logs stored? = In your WordPress uploads directory: `/uploads/ai-bot-monitor/`, one CSV per day (`log-YYYY-MM-DD.csv`). = How does the AI-Layer overview work? = It scans today’s user agents for well-known retrieval/crawler signatures (e.g. Chrome/141, GPTBot, CCBot, PerplexityBot) and counts hits. = Can I exclude my own IPs? = Yes. Add to your theme or a small plugin: `add_filter('ai_bot_monitor_ip_whitelist', fn($w)=>array_merge($w, ['123.123.123.123']));` = Does it impact performance? = Minimal. The plugin writes lightweight, line-based logs and skips admin, AJAX, and cron requests. == Screenshots == 1. AI-Layer overview (incl. Chrome/141) 2. Recent bot activity table 3. ZIP export button == Changelog == = 1.3 = * Added AI-Layer overview (incl. Chrome/141 signatures) * Refined bot detection * Minor hardening and input sanitization * Public branding: Author **Seb2000 / Straight Up Digital** = 1.2 = * Initial public release with logging, daily rotation, dashboard and ZIP export == Upgrade Notice == 1.3 adds the AI-Layer overview and improved detection. == Author == Developed by **Seb2000 / Straight Up Digital** (https://straight-up-digital.com/)