
BotTally
v0.5.3Vicsor · 2026年11月25日 上架
See which AI bots read your site and how many people come back from AI answers. Allow or block each bot in robots.txt. Local, no cookies, no IPs.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 0
- 最近更新
- 2026年11月25日
贡献者
Find out what AI takes from your site, and what it gives back.
BotTally shows two things side by side:
- Which AI bots read your content. GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, Applebot, Meta-ExternalAgent, Bytespider, Amazonbot, CCBot and more are recognised on the server by their User-Agent.
- How many people arrive from AI answers. Visitors who click a link to your site in ChatGPT, Perplexity, Claude, Gemini, Microsoft Copilot, Meta AI, Le Chat, DeepSeek or Grok are counted by a tiny script (under 1 KB, no cookies).
The main report puts both numbers in one table per AI company, with a ratio: people per 1,000 bot visits. This tells you which companies send readers back for what their bots take, and helps you decide whom to block.
Features
- Overview for the period you choose (7 days up to all the history you keep): AI bot visits, people from AI answers, number of blocked bots, a daily SVG chart (no external libraries).
- Table by company: bots and their purpose (AI training, AI search, user request), bot visits, human visits, ratio, and an allow/block switch for every bot.
- The pages AI bots read most and the landing pages of people from AI answers: top 20, 100 or 500, for any period up to all the history you keep.
- Access control through robots.txt: one-click rule sets “Block training, allow search” (recommended), “Block all”, “Allow all”, or per-bot switches. A preview shows the resulting robots.txt.
- Safety check: before you block a search or user-request bot, the plugin shows how many people came from that company’s AI answers in the last 30 days.
- Works with SEO plugins: rules are appended through the core
robots_txtfilter, rules of Yoast SEO, Rank Math, WooCommerce and others are kept. - Detects a physical robots.txt file (which WordPress cannot change), never overwrites it and gives you the lines to copy.
- Detects page caches (LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, SiteGround Optimizer, Cloudflare) and explains what that means for bot counts. For WP Rocket and LiteSpeed Cache a button excludes AI bots from the cache (only when you click it).
- Dashboard widget with the numbers for the last 7 days.
- Quick setup in three steps (what to count, who may read your site, page cache); it can be opened again from the header at any time.
- History as long as you like: keep daily totals from 7 days to 2 years, or forever. One small row per bot, page and day.
- Settings and diagnostics: history length, paths that are not counted, roll-up status, physical robots.txt, cache status.
- Multisite: every site of the network has its own tables and settings.
Built to be light
- Normal visitors: one regular-expression check of the User-Agent, no database query.
- AI bots: one INSERT at the end of the request, after the response code is known.
- Raw events are rolled up into daily counters every hour (Action Scheduler when WooCommerce is active, WP-Cron otherwise), in batches of 5,000 rows, and deleted after 48 hours.
- Above 100,000 bot visits per day the plugin automatically switches to sampling (every Nth visit is recorded and multiplied) and marks the report as estimated.
Privacy
Everything is counted locally on your site. The plugin sends nothing to Vicsor or anyone else.
- No cookies, no localStorage/sessionStorage, no visitor identifiers.
- IP addresses and full User-Agent strings are never stored. The beacon’s rate limit (60 requests per minute per client) uses a salted hash of the IP address in a counter that expires after about a minute.
- Only the name of the bot or AI source, the page path (without query string), the time, the HTTP status and daily totals are stored.
Do you need a consent banner for the visitor count? The plugin does not use cookies or identifiers, but under EU ePrivacy rules a script that reads information in the browser (here: the referring site and the address) and sends it can fall under Article 5(3) of the ePrivacy Directive (see EDPB Guidelines 2/2023). Several regulators exempt strictly anonymous, first-party audience measurement from consent, others do not. We therefore do not promise that no consent is needed in every country; please check with your privacy adviser. You can turn the visitor count off in Tools AI Bots Settings. A suggested privacy policy text is added to Settings Privacy Policy Guide.
Honest numbers
Bots do not run JavaScript, so their visits can only be counted on the server. If a page cache serves a page without starting WordPress, that visit is not counted. The plugin tells you when this can happen and how to fix it, and the report says “part of the bot visits is not visible because of the page cache” instead of pretending to be exact. Google-Extended and Applebot-Extended are robots.txt tokens only: Google and Apple crawl with their normal search bots, so these visits cannot be told apart.
Pro add-on
BotTally is complete on its own: no locked features, no limits, no license checks and no requests to our servers. A separate paid plugin, BotTally Pro, adds features of its own through hooks: answering chosen bots with 403, 429 or 402 before the theme loads, server and Cloudflare rules, IP verification against the ranges the AI companies publish, a list of unknown bots, rules per site section, filters by bot and AI source with custom date ranges, WooCommerce orders by AI source, e-mail reports, alerts, llms.txt, CSV and Google Analytics 4 export. A “Go Pro” link and a short list of these features appear only on the plugin’s own page; both disappear when the add-on is active.
For developers
Filters: aibi_agents (bot directory), aibi_agents_signature (lets the User-Agent index stay cached when aibi_agents is filtered), aibi_admin_header_pills (status pills in the header), aibi_robots_rules (lines, blocked keys, robots.txt so far), aibi_retention_days, aibi_retention_choices, aibi_top_pages_limit, aibi_admin_tabs, aibi_verify_hit, aibi_rate_limit, aibi_is_site_content, aibi_sampling_threshold, aibi_rollup_settle_seconds, aibi_pro_active.
Actions: aibi_loaded, aibi_agent_request (every request of a known AI bot, before the theme), aibi_bot_detected, aibi_referral_recorded, aibi_rollup_completed, aibi_admin_after_overview, aibi_admin_settings_after, aibi_admin_access_after, aibi_admin_notices, aibi_render_tab_{$tab}, aibi_unknown_bot_request (a bot-like User-Agent that is not in the directory; only its name token is passed, and only when an add-on listens). Add-on screens can use the components of AIBotInsights\Admin\UI (cards, toggles, save bar, toasts). An add-on fires aibi_pro_loaded to hide the “Go Pro” links.
External services
This plugin does not connect to any external service. The bot directory is bundled with the plugin (data/agents.json) and is updated with plugin releases; it is never downloaded from a server. The visitor beacon sends data only to your own site (/wp-json/aibi/v1/ref). The admin screens contain plain links to the crawler documentation of OpenAI, Anthropic, Perplexity, Google, Apple, Meta, Amazon and Common Crawl; they are only opened if you click them.