Title: AI Bot Radar
Author: isarns
Published: <strong>December 5, 2026</strong>
Last modified: December 5, 2026

---

Search plugins

![](https://ps.w.org/ai-bot-radar/assets/banner-772x250.png?rev=3846438)

![](https://ps.w.org/ai-bot-radar/assets/icon-256x256.png?rev=3846438)

# AI Bot Radar

 By [isarns](https://profiles.wordpress.org/isarns/)

[Download](https://downloads.wordpress.org/plugin/ai-bot-radar.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/ai-bot-radar/#description)
 * [Reviews](https://wordpress.org/plugins/ai-bot-radar/#reviews)
 *  [Installation](https://wordpress.org/plugins/ai-bot-radar/#installation)
 * [Development](https://wordpress.org/plugins/ai-bot-radar/#developers)

 [Support](https://wordpress.org/support/plugin/ai-bot-radar/)

## Description

See which AI crawlers scrape your site, count real visitors sent by ChatGPT & Perplexity,
and block training bots in one click — with auto-generated robots.txt, Cloudflare
WAF, Nginx, and .htaccess rules. 100% local.

AI companies crawl your content to train models and to answer questions in AI search,
while ChatGPT, Perplexity and other assistants send you real human visitors. AI 
Bot Radar shows you both sides in one dashboard, so you can opt out of AI training
without disappearing from AI answers. Everything runs inside your WordPress install:
no accounts, no external API calls, no telemetry, no CDN assets.

**AI crawler detection and logging**

 * Recognises the major AI crawlers and agents, each labelled with its vendor and
   purpose: Training, Search, Assistant or Fetcher.
 * Covers OpenAI (GPTBot, OAI-SearchBot, ChatGPT-User), Anthropic (ClaudeBot, Claude-
   SearchBot, Claude-User and legacy tokens), Perplexity, Google (Google-Extended,
   GoogleOther), Apple (Applebot-Extended), Meta, ByteDance, Common Crawl, Amazon,
   Cohere, DuckDuckGo, Mistral and Diffbot.
 * Bots are recognised by the User-Agent they announce (self-identified). Requests
   from everyone else cost a quick User-Agent check and never write to the database.
 * The real HTTP status is logged, including redirects and 404s. robots.txt and 
   favicon.ico fetches are not counted as visits.
 * Old data is pruned automatically every day (keep 7, 30 or 90 days) in small batches,
   with a hard cap of 100,000 stored events that is also enforced between cron runs.

**AI human referral counter**

 * Counts real people who click through to your site from ChatGPT, Perplexity, Claude,
   Gemini, Microsoft Copilot, DeepSeek, Mistral Le Chat, Meta AI, You.com, Phind,
   Kagi Assistant and Grok.
 * Uses the HTTP Referer (exact domain or real subdomain match only) and `utm_source
   =chatgpt.com` / `utm_source=perplexity.ai` tags.
 * Logged-in users and HEAD requests are never counted, so your own browsing does
   not inflate the numbers.

**Per-bot allow / block controls**

 * Switch any AI bot between Allow and Block, or use the presets: Block Training
   Bots Only (recommended), Allow All, Block All.
 * Blocked bots get a clean `User-agent: <token>` / `Disallow: /` rule in the robots.
   txt that WordPress generates, with a live preview and a Copy button.
 * Optional: send HTTP 403 Forbidden to blocked bots that reach PHP (off by default).
   This covers pages, feeds, the REST API and wp-login.php.
 * For cached sites: copy-paste User-Agent block rules for Cloudflare WAF (custom
   rule expression), Apache (.htaccess) and Nginx, generated live from the bots 
   you block.

**Dashboard**

 * 7-day / 30-day KPI cards, a daily activity chart in your site’s timezone (with
   separately scaled Bots / Referrals views so small referral numbers stay readable),
   breakdowns by bot and by referral source, top crawled paths and top AI-referred
   pages.
 * A filterable, paginated log of recent events.
 * A “Last 7 Days” widget on the WordPress Dashboard with AI crawler hits, human
   AI referrals and the top sources.
 * An AI Bot Radar section under Tools > Site Health > Info for support requests.

#### A note on robots.txt control tokens

    ```
    Google-Extended and `Applebot-Extended` are robots.txt control tokens only. Google and Apple crawl with their normal crawlers and use these tokens to decide whether your content may be used for AI training. They never appear as a request User-Agent, so AI Bot Radar never logs them and HTTP 403 cannot apply to them; blocking them only adds the robots.txt rule. They are labelled "robots.txt control token" in the plugin.
    ```

#### Privacy

AI Bot Radar stores no IP addresses and no data that identifies a person.

 * For human AI referrals it stores only the referral source, the request path without
   its query string, the HTTP status and the time. No User-Agent, no IP, no cookie.
 * For AI crawlers it additionally stores the crawler’s self-reported User-Agent.
 * It makes no outgoing HTTP requests of any kind.
 * Suggested privacy policy text is added under Settings > Privacy.

#### Multisite

Network activation sets up every site, and sites created later are set up automatically.
Each site has its own events table and settings, and each site is configured separately(
there is no network-wide policy screen). On a subdirectory network crawlers only
read the main site’s robots.txt, so set robots.txt rules on the main site; HTTP 
403 enforcement works on every site. Uninstalling cleans up every site that has “
delete all data on uninstall” enabled.

#### For developers

 * `aibr_bots` filters the bot registry. Each entry is keyed by a slug and needs
   a `token`; optional `vendor`, `category` (training, search, assistant, fetcher),`
   robots_only`, `legacy`, `user_initiated`.
 * `aibr_referrals` filters the referral sources: `label`, `hosts`, optional `path`
   prefix and `utm` values. Browsers send only the origin as a cross-site referrer
   by default, so a `path` rule rarely matches real visitors.
 * `aibr_row_cap` (default 100000, applied to AI crawler visits and AI referrals
   separately) and `aibr_cap_check_chance` (default 500, i.e. 1 in 500 inserts) 
   tune the storage cap.
 * `aibr_event_logged` (action) fires after each event is stored, with the stored
   row and its id.
 * `aibr_should_block` filters the HTTP 403 decision for a matched bot (`$block,
   $bot_slug, $path, $settings`). robots.txt is always served.
 * `aibr_admin_tabs` adds admin tabs (slug => label); render each one on the `aibr_render_tab_{
   slug}` action.

Add the registry filters before `plugins_loaded` (for example in an mu-plugin), 
because detection runs early.

## Screenshots

[⌊Dashboard showing 7-day / 30-day AI crawler visits, human AI referrals, and the
daily activity chart.⌉⌊Dashboard showing 7-day / 30-day AI crawler visits, human
AI referrals, and the daily activity chart.⌉[

Dashboard showing 7-day / 30-day AI crawler visits, human AI referrals, and the 
daily activity chart.

[⌊Bot Rules with one-click presets, live robots.txt preview, and auto-generated 
Cloudflare WAF / Nginx / .htaccess snippets.⌉⌊Bot Rules with one-click presets, 
live robots.txt preview, and auto-generated Cloudflare WAF / Nginx / .htaccess snippets
.⌉[

Bot Rules with one-click presets, live robots.txt preview, and auto-generated Cloudflare
WAF / Nginx / .htaccess snippets.

[⌊Recent Logs with source filter, HTTP status codes, and decoded paths.⌉⌊Recent 
Logs with source filter, HTTP status codes, and decoded paths.⌉[

Recent Logs with source filter, HTTP status codes, and decoded paths.

[⌊WordPress Dashboard widget and Settings (retention, 403 enforcement, privacy).⌉⌊
WordPress Dashboard widget and Settings (retention, 403 enforcement, privacy).⌉[

WordPress Dashboard widget and Settings (retention, 403 enforcement, privacy).

## Installation

 1. Upload the `ai-bot-radar` folder to `/wp-content/plugins/`, or install the plugin
    from the Plugins screen.
 2. Activate it from the Plugins screen.
 3. Open **AI Bot Radar** in the admin menu. Logging starts immediately; choose which
    bots to block under **Bot Rules**.

## FAQ

### Does it send data anywhere?

No. AI Bot Radar makes no external requests, has no telemetry, uses no third-party
service and loads no assets from a CDN. All data stays in your WordPress database.

### I use a page cache or CDN. Will blocking still work?

Partly, and it is important to understand why. Full-page caches (Cloudflare, WP 
Rocket, LiteSpeed Cache, your host’s page cache) can serve a cached copy of a page
before WordPress and PHP run at all. When that happens AI Bot Radar never sees the
request, so it cannot log it or send a 403.

 * **robots.txt rules always apply**: well-behaved AI crawlers read robots.txt and
   obey it. This is the universal baseline.
 * **HTTP 403 enforcement applies only to requests that reach PHP uncached.** To
   block at the cache or CDN layer, copy the generated Cloudflare WAF, Apache (.
   htaccess) or Nginx rule from **Bot Rules > Block at your CDN or web server**.
 * Logged numbers on heavily cached sites are a lower bound.

### My robots.txt does not show the rules

WordPress can only add rules to the virtual robots.txt it generates. If a physical`
robots.txt` file exists in your site root, your web server serves it directly and
AI Bot Radar shows a warning on the Dashboard and Bot Rules screens. Copy the previewed
rules into that file, or delete it.

WordPress also only generates robots.txt when the site is installed at the root 
of its domain. For a site in a subdirectory (for example `example.com/blog/`, or
a subdirectory multisite subsite) crawlers read only `example.com/robots.txt`, so
AI Bot Radar shows a notice and you paste the rules there with **Copy rules**. HTTP
403 enforcement works either way.

### Does it work with Yoast SEO, Rank Math or All in One SEO?

Yes. AI Bot Radar adds its rules late (priority 999 on the `robots_txt` filter),
and its tests check the real plugins: Yoast SEO and Rank Math (including Rank Math’s
custom robots.txt editor) keep the rules, and All in One SEO merges them into its
own output. One exception: if All in One SEO’s custom robots.txt has a rule for 
the same bot (for example `User-agent: GPTBot` / `Allow: /`), All in One SEO’s rule
wins. Use **View live robots.txt** on the Bot Rules screen to check what crawlers
get. A CDN or host that serves its own robots.txt (for example Cloudflare’s managed
robots.txt) is outside WordPress, so check it there.

### Do robots.txt rules stop all AI bots?

No. robots.txt is a voluntary standard. The major vendors listed here state that
their crawlers respect it, but it is not a technical barrier. Use the optional HTTP
403 enforcement for an extra layer on uncached requests.

### Do all AI bots obey robots.txt?

Training and search crawlers from the major vendors state that they do. User-initiated
fetchers such as ChatGPT-User, Perplexity-User and Claude-User act on a person’s
request and may not follow robots.txt. To block their uncached visits, turn on HTTP
403 enforcement.

### Can it block AI browsers such as ChatGPT Atlas or Perplexity Comet?

No. AI browsers and browsing agents identify as a regular Chrome browser, so no 
plugin can reliably tell them apart from people by their request. AI Bot Radar only
recognises AI crawlers and agents that announce themselves in their User-Agent, 
and “Block All” covers every bot in its list, not every AI product.

### Why are some bots never logged?

Google-Extended and `Applebot-Extended` are robots.txt control tokens, not real 
crawlers, so they never appear in requests. Assistant-type agents (for example ChatGPT-
User) only visit when a person asks the assistant about your page.

### What happens when I delete the plugin?

By default the events table, settings and scheduled task are removed. You can turn
this off under Settings to keep your data.

### Is there a CSV export?

Not in this version.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“AI Bot Radar” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ isarns ](https://profiles.wordpress.org/isarns/)

[Translate “AI Bot Radar” into your language.](https://translate.wordpress.org/projects/wp-plugins/ai-bot-radar)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ai-bot-radar/), check
out the [SVN repository](https://plugins.svn.wordpress.org/ai-bot-radar/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/ai-bot-radar/) by
[RSS](https://plugins.trac.wordpress.org/log/ai-bot-radar/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release: AI crawler detection and logging, AI referral counter, per-bot
   robots.txt rules with presets, optional HTTP 403 enforcement, Cloudflare WAF /
   Apache / Nginx rule generator, dashboard, WordPress Dashboard widget, Site Health
   info, logs and settings.

## Meta

 *  Version **1.0.0**
 *  Last updated **6 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [ai traffic](https://wordpress.org/plugins/tags/ai-traffic/)[ChatGPT](https://wordpress.org/plugins/tags/chatgpt/)
   [crawler](https://wordpress.org/plugins/tags/crawler/)[gptbot](https://wordpress.org/plugins/tags/gptbot/)
   [robots.txt](https://wordpress.org/plugins/tags/robots-txt/)
 *  [Advanced View](https://wordpress.org/plugins/ai-bot-radar/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ai-bot-radar/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ai-bot-radar/reviews/)

## Contributors

 *   [ isarns ](https://profiles.wordpress.org/isarns/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ai-bot-radar/)