Title: Royal AI Firewall
Author: Royal Plugins
Published: <strong>July 2, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://ps.w.org/royal-ai-firewall/assets/banner-772x250.png?rev=3594606)

![](https://ps.w.org/royal-ai-firewall/assets/icon-256x256.png?rev=3594606)

# Royal AI Firewall

 By [Royal Plugins](https://profiles.wordpress.org/royalpluginsteam/)

[Download](https://downloads.wordpress.org/plugin/royal-ai-firewall.1.0.13.zip)

[Live Preview](https://wordpress.org/plugins/royal-ai-firewall/?preview=1)

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

 [Support](https://wordpress.org/support/plugin/royal-ai-firewall/)

## Description

Every AI company is scraping WordPress sites to train models, feed AI search engines,
and answer questions using your content — usually without your knowledge and rarely
with a link back. Royal AI Firewall gives you agency at the WordPress layer: see
every AI agent hitting your site, and decide who gets through with one-click per-
bot policies.

Whether you want to allow AI search engines but block training crawlers, log everything
for a month before deciding anything, or block every AI bot with one click — this
plugin gives you the visibility and enforcement to make that choice.

This plugin gives you:

 * A live dashboard of which AI agents have visited your site in the last 24 hours
 * A per-bot dropdown to allow, block, rate-limit, paywall-redirect, or log-only
   any of 70+ recognized AI bots
 * A master “Block all AI bots” panic button on every dashboard load
 * A first-run setup wizard that detects your CDN (Cloudflare, Bunny CDN, Fastly,
   KeyCDN, Sucuri, StackPath, or Akamai) and, when it finds Cloudflare, tells you
   exactly which CF settings to dial down so this plugin can take over the AI-bot
   layer
 * A Bot Access page that checks whether real search-engine bots can still reach
   your site, with a self-check you can re-run
 * An Activity Log of every recognized bot visit, with the page it requested and
   the decision taken
 * Verified-bot checks: Web Bot Auth signatures (OpenAI, Google) and reverse-DNS
   checks for search engines, so spoofed user agents are caught
 * Optional auto-block of bots that ignore the Content Signals in your robots.txt,
   with proof required and automatic expiry
 * A Backup & Support page to export and import your bot policies and copy a diagnostic
   bundle for support
 * Compatibility detection for GuardPress and other popular security plugins
 * Blocked AI bots added to the user-agent exclusion lists of popular page-cache
   plugins, so cached pages are not served to them
 * A check that Elementor’s Agent Ready robots.txt bot rules agree with your firewall
   policies, with one-click fixes
 * A bundled bot fingerprint catalog that refreshes on every plugin update, with
   an optional opt-in to fetch fresher catalogs daily from fingerprints.royalplugins.
   com (see External Services below)

#### Free, Self-Hosted, Fully Featured

Royal AI Firewall is fully featured in its free, GPL-licensed release. There is 
no Pro version — every feature ships in the wp.org plugin, and updates go through
the standard WordPress plugin updater.

Your data stays on your server. The plugin never sends your site’s traffic, customer
data, IP addresses, or credentials to any third party. See the External Services
section below for the full list of endpoints the plugin can contact, when, and how
to disable each one.

#### AI Bots Recognized (73 as of v1.0.13)

The bundled catalog covers the major AI bot families. Each entry includes the bot’s
owner, intended purpose, default policy, and the blocking consequences (for example,“
blocking GPTBot may remove your site from ChatGPT search results”).

**Training crawlers:** GPTBot, ClaudeBot, anthropic-ai, Bytespider, TikTokSpider,
FacebookBot, Meta-ExternalAgent, GoogleOther, GoogleOther-AI, Google-Extended, Google-
CloudVertexBot, MistralBot, KimiBot, cohere-ai, cohere-training-data-crawler, ai2bot,
ai2bot-dolma, Amazonbot, PetalBot

**Training crawlers (continued):** DeepSeekBot

**Retrieval bots (on-demand):** ChatGPT-User, OAI-AdsBot, ClaudeBot-User, Claude-
Web, claude-code, Perplexity-User, Kimi-User, YandexAdditionalBot, Meta-ExternalFetcher,
facebookexternalhit, APIs-Google, Doubaobot

**AI search engines:** OAI-SearchBot, PerplexityBot, Claude-SearchBot, Kimi-SearchBot,
MistralAI-Index, YandexAdditional, meta-webindexer, Applebot-Extended, MicrosoftCopilotBot,
DuckAssistBot, YouBot, PhindBot, iAsk, Komo, Liner, Brave Leo, Andi

**Search engines (always-allow guarded):** Googlebot, Googlebot-Image, Googlebot-
Video, Googlebot-News, Google-InspectionTool, Bingbot, Applebot, DuckDuckBot

**Other Microsoft crawlers:** BingPreview

**Other search engines:** Baiduspider

**Agent browsers (newer category):** OperatorAgent, ChatGPT-Atlas, Claude-Computer-
Use, Perplexity-Comet, Google-Agent

**Dataset scrapers:** CCBot (Common Crawl), Diffbot, ImagesiftBot, Omgilibot, Timpibot

**Other Google crawlers:** Storebot-Google, Mediapartners-Google, AdsBot-Google,
adidxbot

#### The Dashboard

Open the AI Firewall menu in your WordPress admin to see:

 * A hero metric — total AI bot hits in the last 24 hours and the number of distinct
   bots involved
 * A per-bot list with hit count, bandwidth used, and a one-click policy dropdown
   for each row
 * An MCP / Abilities API activity widget when Royal MCP is active or ability calls
   were logged in the last 24 hours
 * A Cloudflare visibility status card with an honest estimate of how many AI bots
   may have been filtered by Cloudflare at the edge before reaching WordPress
 * Click any bot row to expand a drill-down view: top URLs the bot hit, recent activity,
   and what blocking the bot would cost you

#### Per-Bot Policy Controls

Each recognized bot row has a dropdown with six options:

 * **Use default policy** — falls back to your global mode (Log only, Block training,
   or Block all)
 * **Always allow** — bot is allowed regardless of default mode
 * **Log only** — bot is allowed and recorded; never blocked
 * **Block** — bot receives a 403 response immediately, before WordPress runs any
   heavy work
 * **Rate limit** — bot is allowed up to the number of requests per minute you set,
   then receives a 429 response with a Retry-After header
 * **Paywall** — bot is redirected to a page you choose (for example, your licensing
   terms), or receives a 402 response when no page is set

Blocking also applies to anonymous admin-ajax, admin-post, and XML-RPC requests 
from AI bots; logged-in users are not checked on those entry points.

Major search engines (Googlebot, Bingbot, Applebot, DuckDuckBot) are protected from
accidental blocking. The per-bot dropdown is disabled for these bots, and the API
rejects block requests for them unless you explicitly enable the “Search engine 
override” toggle in Settings — with a clear warning that blocking Googlebot removes
your site from Google Search.

#### Cloudflare Compatibility

If your site is behind Cloudflare, the setup wizard’s Cloudflare screen tells you
exactly which CF settings to turn off so this plugin can take over the AI-bot layer:

 * **AI Crawl Control** (Security tab  Crawlers)  set each crawler to “Allow”
 * **AI Crawler and Agent access policies** (Security  Settings  Bot traffic)  Search,
   Agent and Training to “Allow”
 * **Bot Preference Sync**  OFF, or know that Cloudflare adds its own lines to the
   robots.txt bots see
 * **Bot Fight Mode**  OFF if you use Royal MCP or other REST API clients (it can
   challenge API calls, and WAF rules cannot skip it)
 * **AI Labyrinth** (Security  Settings  Bot traffic)  OFF
 * **Custom WAF rules** blocking AI bots  DELETE (the per-bot controls in this plugin
   replace them)
 * **Under Attack mode**  OFF unless your site is actually under attack

And which CF settings to leave on (they don’t conflict):

 * DDoS protection
 * Managed WAF rules
 * SSL/TLS
 * Browser Integrity Check
 * Caching

The dashboard also detects Cloudflare on every admin page load (looking for `cf-
ray`, `cf-connecting-ip`, or `CDN-Loop: cloudflare` headers) and shows a status 
card with the detection state. A persistent 24-hour state ensures the UI stays stable
even when an occasional admin request doesn’t pass through CF.

#### Other CDN Compatibility

The setup wizard also recognizes 6 additional CDNs by their vendor-forwarded request
headers: **Bunny CDN**, **Fastly**, **KeyCDN**, **Sucuri**, **StackPath**, and **
Akamai**. Detection is header-sniff only — no outbound HTTP, no DNS lookups.

When any of these are detected, the wizard shows a compatibility note rather than
a network-specific dial-down (Cloudflare remains the only CDN with a full walkthrough
because its AI controls are the most common source of operator confusion). Royal
AI Firewall sees AI bot traffic that reaches WordPress regardless of which CDN sits
in front — if you have edge-side AI-bot rules configured on your CDN, consult its
documentation, as the two layers can coexist.

#### Other Security Plugin Compatibility

The plugin auto-detects these plugins when they’re active and shows compatibility
notes on the dashboard and Settings page:

 * **Edge-firewall security plugins** — their firewalls run before WordPress loads.
   AI bots they block at their layer won’t appear in this plugin’s dashboard, but
   the two layers don’t conflict.
 * **WordPress-layer security plugins** — coexist cleanly at the WordPress layer.
 * **GuardPress (Royal Plugins)** — first-party Royal Plugins integration.
 * **Royal MCP (Royal Plugins)** — when Royal MCP is detected, MCP tool invocations
   from connected AI agents appear in the MCP Activity widget on the dashboard.

#### WordPress Abilities API & MCP Server Integration

This plugin listens for the WordPress Abilities API hooks (WP 6.9+) and logs ability
calls made by a recognized AI agent outside a REST request; calls that arrive over
REST are logged once, as the request itself. They appear in the MCP Activity widget
on the dashboard.

Authenticated requests to Royal MCP’s own endpoint are not subject to bot policies:
Royal MCP checks the token and records each tool call itself.

If Royal MCP 1.4.33 or later is installed, an additional first-party bridge captures
every MCP tool call from that server with full tool name and result status.

#### Search Engine Guard

Major search engines are protected from accidental blocking by default. The dashboard
dropdown is disabled for Googlebot, Bingbot, Applebot, and DuckDuckBot. The protection
applies only when the request’s identity is confirmed (reverse DNS with forward 
confirmation, or a user-agent match for bots that publish no verification method);
a request that only claims to be Googlebot is treated like any other unverified 
bot. The REST API endpoints reject block attempts on these bots with a 409 Conflict
response unless the customer has explicitly enabled the “Search engine override”
toggle in Settings. The override toggle includes a clear warning that blocking Googlebot
removes the site from Google Search.

#### Telemetry and Data

**Anonymous usage data is OFF by default.** The plugin makes no outbound HTTP call
for telemetry unless you explicitly opt in — via the setup wizard’s final step or
the “Anonymous usage data” toggle in Settings.

If you opt in, once per week the plugin POSTs a small JSON payload to `telemetry.
royalplugins.com`. The payload contains:

 * Plugin version
 * WordPress version
 * PHP version
 * An opaque one-way hash of your site URL — used only to count unique installs.
   The URL itself cannot be recovered from the hash (SHA-256 with a per-install 
   random salt that never leaves your site).
 * Whether you have completed the setup wizard
 * How many per-bot policy overrides you have configured
 * A bucketed range for AI bot hits in the last 24 hours (e.g. “11–50”)

The following are **NEVER** sent, regardless of toggle state:

 * Your site URL or domain (only its salted hash)
 * Customer email addresses
 * Invocation log contents
 * Specific IP addresses
 * Specific bot identities
 * User-Agent strings of visitors

Data retention: raw payloads are retained for 90 days. Aggregated statistics are
retained indefinitely. Per-site fingerprints are purged after 12 months of no reports.
You can revoke consent at any time in Settings — the plugin unschedules the weekly
cron immediately.

The other outbound HTTP call the plugin can make (also opt-in) is a single daily
GET request to `fingerprints.royalplugins.com` for a fresher bot catalog when you
enable “Keep catalog updated between releases.” That request body is empty and includes
only the plugin version in the User-Agent header. See the “External Services” section
below.

Log retention defaults to 7 days. The retention window is filterable via `raif_log_retention_days`
for developers who need a different value.

#### How Activation Works

On activation the plugin:

 * Creates five custom database tables: `raif_invocation_log`, `raif_daily_rollup`,`
   raif_bot_policy`, `raif_bot_access_baseline`, `raif_page_type_daily`
 * Seeds safe default options (Log only mode; telemetry off; uninstall data-delete
   off; live catalog updates off)
 * Schedules WP-Cron events for hourly rollup and daily log prune, both running 
   entirely inside your WordPress install with no network calls
 * Schedules the twice-daily bot access self-check, which requests your own home
   page (see External Services)
 * Loads the bundled bot fingerprint catalog from the plugin zip
 * Redirects the activating admin to the 4-step setup wizard
 * The wizard is skippable from any step

**No request goes to any outside server until you opt in** to live catalog updates,
anonymous usage data, or a Web Bot Auth policy. The only automatic request is the
bot access self-check to your own site. The plugin is fully functional without ever
making a network call — the bundled catalog refreshes from the plugin zip on every
plugin update.

On deactivation the plugin unschedules all WP-Cron events and removes its entries
from page-cache user-agent lists. **Data is preserved by default** so a re-activation
continues where you left off. To remove all data on uninstall, check the “Delete
all logs, tables, and options when the plugin is uninstalled” toggle in Settings
Data before deactivating.

### External Services

The plugin can contact three outside services, each off by default and used only
after you turn on the feature that needs it. It also makes one automatic request
to your own site. No customer data, IP address, credentials, or site traffic is 
ever transmitted to any third party.

You can globally block every outbound request by setting `define( 'WP_HTTP_BLOCK_EXTERNAL',
true );` in `wp-config.php`. The plugin degrades cleanly when blocked.

**1. Royal AI Firewall Fingerprint Catalog (opt-in, off by default)**

 * **Endpoint:** https://fingerprints.royalplugins.com/v1/index.json and its signature
   file https://fingerprints.royalplugins.com/v1/index.json.sig
 * **When it runs:** Only when the customer enables the “Keep catalog updated between
   releases” toggle. Off by default.
 * **Frequency:** Once per day via WordPress cron (`raif_fingerprint_update`); the
   signature file is requested only when a new catalog was downloaded.
 * **Data sent:** None. Request body is empty. User-Agent header carries the plugin
   version (e.g. `royal-ai-firewall/X.Y.Z`), plus a standard `If-None-Match` cache
   validator. No site URL, no IP address, no customer data.
 * **Data received:** A JSON catalog of recognized AI bot fingerprints (approximately
   55 KB) and its Ed25519 signature. A catalog without a valid Royal Plugins signature
   is never used.
 * **How to disable:** Untick the toggle in Settings  Bot fingerprint database, 
   or filter `raif_fingerprint_endpoint` to an empty string.
 * **Privacy Policy:** [royalplugins.com/privacy/](https://royalplugins.com/privacy/)
 * **Terms of Service:** [royalplugins.com/terms/](https://royalplugins.com/terms/)

**2. Anonymous Usage Telemetry (opt-in, off by default)**

 * **Endpoint:** https://telemetry.royalplugins.com/v1/raif/report
 * **When it runs:** Only when the customer enables the telemetry toggle in Settings
   Anonymous usage data.
 * **Frequency:** Once per week via WordPress cron (`raif_telemetry_report`).
 * **Data sent:** Plugin version, WordPress version, PHP version, a locally-salted
   install fingerprint hash (not derivable back to a URL), coarse-bucketed feature-
   usage counters. No site URL, no IP address, no bot hit content, no customer data.
 * **How to disable:** Untick the telemetry toggle in Settings  Anonymous usage 
   data.
 * **Privacy Policy:** [royalplugins.com/privacy/](https://royalplugins.com/privacy/)

**3. Web Bot Auth Key Directories (only when a Web Bot Auth policy is on)**

 * **Endpoints:** `https://chatgpt.com/.well-known/http-message-signatures-directory`(
   OpenAI) and `https://agent.bot.goog/.well-known/http-message-signatures-directory`(
   Google)
 * **When it runs:** Weekly via WordPress cron (`raif_web_bot_auth_refresh`). Each
   operator’s directory is requested only while “Trust verified requests” or “Block
   unverified claims” is turned on for that operator in Settings  Web Bot Auth. 
   Off by default.
 * **Data sent:** None. Request body is empty. User-Agent header `royal-ai-firewall/
   <version> (web-bot-auth-reader)`. No site URL, no customer data.
 * **Data received:** The public signing keys each operator publishes so the plugin
   can verify cryptographically …

## Screenshots

[⌊Dashboard — AI bot visits in the last 24 hours, Content Signals honored and violated,
AI traffic by page type, the bot by page-type matrix, and per-bot policy dropdowns.⌉⌊
Dashboard — AI bot visits in the last 24 hours, Content Signals honored and violated,
AI traffic by page type, the bot by page-type matrix, and per-bot policy dropdowns
.⌉[

Dashboard — AI bot visits in the last 24 hours, Content Signals honored and violated,
AI traffic by page type, the bot by page-type matrix, and per-bot policy dropdowns.

[⌊Bot Access — whether real search-engine bots still reach your site, how their 
visits were confirmed, and the self-check result.⌉⌊Bot Access — whether real search-
engine bots still reach your site, how their visits were confirmed, and the self-
check result.⌉[

Bot Access — whether real search-engine bots still reach your site, how their visits
were confirmed, and the self-check result.

[⌊Activity Log — every recognized bot visit with the page requested, where it came
from, and the decision taken.⌉⌊Activity Log — every recognized bot visit with the
page requested, where it came from, and the decision taken.⌉[

Activity Log — every recognized bot visit with the page requested, where it came
from, and the decision taken.

[⌊Activity Log, Content Signals violations — AI bot visits that ignored the Content
Signals you declared in robots.txt.⌉⌊Activity Log, Content Signals violations — 
AI bot visits that ignored the Content Signals you declared in robots.txt.⌉[

Activity Log, Content Signals violations — AI bot visits that ignored the Content
Signals you declared in robots.txt.

[⌊Settings — default policy, search engine override, Content Signals, Web Bot Auth,
Cloudflare, security plugins, page caches and the bot catalog.⌉⌊Settings — default
policy, search engine override, Content Signals, Web Bot Auth, Cloudflare, security
plugins, page caches and the bot catalog.⌉[

Settings — default policy, search engine override, Content Signals, Web Bot Auth,
Cloudflare, security plugins, page caches and the bot catalog.

[⌊Setup wizard, welcome step — one-screen summary of what the plugin does before
the walkthrough starts.⌉⌊Setup wizard, welcome step — one-screen summary of what
the plugin does before the walkthrough starts.⌉[

Setup wizard, welcome step — one-screen summary of what the plugin does before the
walkthrough starts.

[⌊Setup wizard, environment detection — the security plugins, CDNs and MCP servers
found on the site and how the plugin works alongside each.⌉⌊Setup wizard, environment
detection — the security plugins, CDNs and MCP servers found on the site and how
the plugin works alongside each.⌉[

Setup wizard, environment detection — the security plugins, CDNs and MCP servers
found on the site and how the plugin works alongside each.

[⌊Setup wizard, Cloudflare step — which Cloudflare settings to change so this plugin
can manage AI bots.⌉⌊Setup wizard, Cloudflare step — which Cloudflare settings to
change so this plugin can manage AI bots.⌉[

Setup wizard, Cloudflare step — which Cloudflare settings to change so this plugin
can manage AI bots.

[⌊Setup wizard, default policy — pick Log only, Block training crawlers, or Block
all, with a plain description of each.⌉⌊Setup wizard, default policy — pick Log 
only, Block training crawlers, or Block all, with a plain description of each.⌉[

Setup wizard, default policy — pick Log only, Block training crawlers, or Block 
all, with a plain description of each.

## Installation

 1. In your WordPress dashboard, go to **Plugins  Add New** and search for **Royal 
    AI Firewall**.
 2. Click **Install Now**, then **Activate**.
 3. The 4-step setup wizard runs automatically on first activation. Walk through it
    to detect Cloudflare and pick a default policy. The wizard is skippable.
 4. Open **AI Firewall** in the admin menu to see the dashboard.
 5. Wait 2–6 hours for the first AI bot hits to appear, or run a manual test with curl:
 6. curl -A “GPTBot/1.2” https://your-site.com/

## FAQ

### Do I still need Cloudflare?

Yes, if you use Cloudflare for DDoS protection, general WAF rules, SSL/TLS, or caching.
Keep Cloudflare’s core protections on. This plugin handles only the AI-bot-specific
layer at WordPress, so you can dial down Cloudflare’s AI Crawl Control blocks, AI
Labyrinth and custom AI-blocking WAF rules. The setup wizard’s Cloudflare screen
lists exactly which CF toggles to flip.

### Will this block Googlebot?

No. Googlebot, Bingbot, Applebot, and DuckDuckBot are protected from accidental 
blocking. The per-bot dropdown is disabled for these bots by default. To block any
of them, you must explicitly enable the “Search engine override” toggle in Settings,
which warns clearly that blocking Googlebot removes your site from Google Search.

### Does this work with other security plugins?

Yes. Edge-firewall security plugins run their own firewalls before WordPress loads,
so AI bots they block won’t appear in this plugin’s dashboard — but the two layers
don’t conflict. The plugin detects popular security plugins and shows compatibility
notes.

### Does this work with Royal MCP and other MCP server plugins?

Yes. Authenticated Royal MCP calls are never blocked by bot policies, and with Royal
MCP 1.4.33 or later every MCP tool call appears in the MCP Activity widget. For 
other MCP servers, ability calls made outside a REST request are logged through 
the WordPress Abilities API (WP 6.9+); their HTTP requests follow your bot policies
like any other request.

### What happens to my data if I uninstall?

By default, data is **preserved**. The plugin’s tables and logs survive uninstall
so a reinstall picks up where you left off. To delete everything on uninstall, check
the “Delete all logs, tables, and options when the plugin is uninstalled” toggle
in Settings  Data before deactivating.

### My dashboard shows zero hits even though AI bots are visiting my site. What’s wrong?

Almost always a caching plugin caching the REST API response. The plugin already
does four things to prevent this — a cache-buster query string on every dashboard
request, `nocache_headers()` + `DONOTCACHEPAGE` constant on the handler, explicit`
Cache-Control: no-store` response headers, and built-in compatibility filters that
opt out of caching for the most common cache plugins.

If you use a different cache plugin or a server-side cache (nginx `fastcgi_cache`,
Cloudflare Page Rules, Varnish), exclude the path `/wp-json/royal-ai-firewall/*`
from REST API caching in that plugin’s settings.

### How often is the bot catalog updated?

A fresh bot catalog ships with every Royal AI Firewall release, so every time you
update the plugin through your wp-admin  Plugins screen you get the newest catalog
automatically — no outbound network call required. Plugin updates typically ship
every 2–4 weeks, faster after major AI-vendor launches.

If you want catalogs fresher than the per-release cadence, an optional Settings 
toggle (“Keep catalog updated between releases”) opts in to one HTTP GET per day
to `fingerprints.royalplugins.com`. That toggle is off by default; no outbound HTTP
call is ever made until you turn it on.

### Does the plugin phone home or make outbound network calls?

**No, not by default.** Out of the box the plugin contacts no outside server; the
only automatic request is the twice-daily bot access self-check to your own home
page. The bot catalog ships bundled with the plugin and refreshes on every plugin
update. Three features call out only after you turn them on: “Keep catalog updated
between releases” (one GET per day), anonymous usage data (one POST per week), and
Web Bot Auth policies (one GET per week to the public key directory of each operator
you turn on, OpenAI or Google). Turning a feature off unschedules its cron. No license
checks or analytics beacons are ever sent. See External Services for details.

### Is there a Pro version?

No. Every feature ships in the free release on WordPress.org: no license keys, no
locked features, no SaaS subscription. The Royal Tools page may show offers for 
other Royal Plugins products.

### What if I’m behind a different CDN?

The setup wizard also recognizes Bunny CDN, Fastly, KeyCDN, Sucuri, StackPath, and
Akamai. The classifier and per-bot controls work at the WordPress layer regardless
of which CDN sits in front. Cloudflare gets a full dial-down walkthrough because
its AI controls are the most common source of operator confusion; other CDNs get
a compatibility note instead.

### Does the plugin slow down my site?

Classification is a pattern match in memory; reverse-DNS answers are cached per 
IP and capped per minute. The classifier runs in-process against the 73-entry bundled
catalog. Logging is buffered and flushed on the WordPress `shutdown` hook (after
the response is sent), so the response latency a visitor sees is not affected by
database writes.

### How is bot identity verified — can a bad actor just pretend to be Googlebot?

Bots are recognized by their User-Agent header, then checked where the operator 
offers a way to verify. Search engines that publish one (Googlebot, Bingbot, Applebot)
are confirmed with reverse DNS plus a forward lookup; a request that fails is marked
spoofed on the dashboard and gets no search-engine protection, so your default policy
applies to it. Bots that sign their requests with Web Bot Auth (OpenAI, and some
Google-Agent requests) can be checked against the operator’s published keys when
you turn on a Web Bot Auth policy. Other AI bots are identified by User-Agent, and
the Content Signals auto-block counts them only when the same bot is seen from several
networks. Your edge layer (Cloudflare, your CDN, or a security plugin running before
WordPress) remains the right place to enforce identity at the network level.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ Royal Plugins ](https://profiles.wordpress.org/royalpluginsteam/)

[Translate “Royal AI Firewall” into your language.](https://translate.wordpress.org/projects/wp-plugins/royal-ai-firewall)

### Interested in development?

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

## Changelog

#### 1.0.13

 * New: Google is supported as a Web Bot Auth operator, and Google-Agent is recognized.
 * New: Downloaded bot catalogs are used only when they carry a valid Royal Plugins
   signature.
 * New: Settings explains why the last bot catalog update did not apply.
 * New: Settings shows the “use” Content Signal declared in your robots.txt.
 * New: A Backup & Support page holds policy export, import, and a diagnostic bundle
   you can copy for support.
 * Enhancement: Content Signals auto-block needs a signed request or visits from
   several networks, and automatic blocks expire after 30 days unless renewed.
 * Enhancement: The setup wizard’s Cloudflare guidance matches Cloudflare’s current
   dashboard.
 * Enhancement: A form left open too long returns you to the page with a notice 
   instead of an error screen.
 * Enhancement: Clearer wording, translations, and keyboard access across the dashboard,
   Bot Access, Activity Log, and Settings pages.
 * Enhancement: Uninstall always removes scheduled tasks, even when you keep your
   data.
 * Enhancement: Page-cache bot lists stay in sync across multisite networks.
 * Enhancement: Tested up to WordPress 7.2.
 * Fix: The setup wizard’s opt-out for catalog updates and usage data takes effect
   immediately.
 * Fix: Policy import accepts valid export files on every host.

#### 1.0.12

 * New: Rate limit and Paywall options for each bot, alongside Allow, Log only, 
   and Block.
 * New: Blocked AI bots are added to the user-agent exclusion lists of WP Rocket,
   W3 Total Cache, WP Super Cache, and LiteSpeed Cache.
 * New: Settings checks Elementor Agent Ready’s robots.txt bot rules against your
   firewall policies and offers one-click fixes.
 * New: Settings shows the Content Signals in effect for each bot, read from the
   robots.txt your site serves.
 * New: Reset to bundled catalog button in Settings.
 * New: Bot hit counts per page and per page type are shared with SEObolt when both
   plugins are active.
 * Enhancement: Blocking also covers anonymous admin-ajax, admin-post, and XML-RPC
   requests from AI bots.
 * Enhancement: Search engine protection applies only to requests whose identity
   is confirmed.
 * Enhancement: The Web Bot Auth key refresh runs only while a Web Bot Auth policy
   is turned on.
 * Enhancement: Content Signals auto-block counts only requests whose identity can
   be trusted.
 * Enhancement: Bot access alerts are sent once per change in status.
 * Enhancement: Large logs are pruned in batches and dashboard figures load faster.
 * Enhancement: Every dashboard label is now translatable.
 * Enhancement: Admin actions that change data run only from their Settings forms.
 * Enhancement: Settings groups Content Signals and page-cache status with the related
   settings.
 * Fix: Scheduled tasks are restored automatically after a plugin update.
 * Fix: The bot access self-check recognizes its own requests behind other security
   plugins.
 * Fix: Authenticated Royal MCP connections are never blocked by bot policies.
 * Fix: Settings shows the log retention window actually in use.
 * Fix: Bot user agents are recognized regardless of letter case.

#### 1.0.11

 * New: Dashboard tile shows AI bot traffic grouped by page type over the last 7
   days.
 * New: Bot × page-type matrix heatmap on the dashboard.
 * New: Blind-spot detection flags page types under-served by AI crawlers.
 * Fix: Bot access alert emails now render as HTML in all mail clients.
 * Fix: Dashboard sibling-plugin cards correctly recognize Pro editions.
 * Fix: Request classification now applies to every request path.
 * Fix: Dashboard “Allowed” count now reflects log-only traffic in default mode.
 * Fix: Self-test on the WP dashboard widget now correctly identifies its own probe.
 * Fix: Uninstall clears every custom table, and “Erase all logs” clears every log
   table.
 * Fix: Client IP extraction from Cloudflare headers now requires the direct peer
   to be a Cloudflare edge.
 * Fix: Major search engine guard now defers when the reverse-DNS verifier says 
   the request is spoofed.
 * Fix: External Services section in the readme now describes every endpoint the
   plugin can contact.

#### 1.0.9

 * Enhancement: Bot access alert emails now render as HTML with a clearer summary
   of what triggered the alert.
 * Enhancement: Destructive uninstall (opt-in) now removes every plugin option and
   transient.

#### 1.0.8

 * New: Royal AI Firewall now flags AI bots that ignore your declared Content Signals
   and can optionally auto-block repeat violators.
 * New: Content Signals dashboard widget shows your declared preferences and violation
   counts over the past 7 days.
 * New: Invocation history has a dedicated Violations tab for reviewing every bot
   that crossed your declared signals.
 * New: Web Bot Auth signature verification recognizes cryptographically signed 
   requests from OpenAI, Anthropic, Perplexity, Google, and Meta.
 * New: Per-operator policy toggles let you trust verified requests or block requests
   that impersonate an operator without a valid signature.
 * New: The plugin now publishes an auth.txt file at your site root so AI operators
   know which identification methods you accept.
 * Enhancement: Bot catalog updated with Doubaobot, Perplexity-Comet, and DeepSeekBot.
 * Enhancement: Every bot entry now carries an AI purpose classification used for
   Content Signals matching.

#### 1.0.7

 * New: AI Traffic Overview dashboard widget in wp-admin — see AI bot traffic at
   a glance.
 * New: Activity Log admin page with paginated invocation history.
 * New: “Try a bot check” self-test button verifies the firewall is watching right
   after install.
 * Enhancement: Invocation log indexed on source and policy_action for faster widget
   queries at scale.
 * Enhancement: Cross-plugin composition — dashboard widget surfaces Royal MCP, 
   GuardPress, ForgeCache, and SiteVault integration status.
 * Enhancement: Tested up to WordPress 7.1.

#### 1.0.6

 * Enhancement: Bot Access page now includes a reverse-DNS self-test and per-bot
   verification breakdown.
 * Enhancement: Bot Access reverse-DNS self-test is now cached for 60 seconds so
   admin renders stay fast.
 * Enhancement: Google Search Console URL Inspection tool is now recognized and 
   verified as a legitimate Google crawler.
 * Fix: Baseline collection counter now reads Day 1 on install day instead of Day
   2.
 * Fix: Passive bot-access detector no longer flags low-volume search engines as
   collapsed on natural crawl gaps.
 * Fix: Combined bot-access alert now requires two or more watched bots to go silent
   at once before escalating to high-confidence.

#### 1.0.5

 * New: Bot Access page shows verified Googlebot, Bingbot, Applebot, and DuckDuckBot
   hits against a rolling 30-day baseline and alerts if verified hits collapse.
 * New: Reverse-DNS bot verification distinguishes real search-engine bots from 
   spoofed User-Agents on every log row.
 * New: Dual-request active probe fires every 12 hours to catch upstream WAF or 
   CDN rules that block bots before rankings drop.
 * New: Royal Tools submenu lists free companion plugins with one-click install 
   links.
 * Enhancement: Custom top header bar on every Royal AI Firewall admin page with
   View Docs and Support buttons.
 * Enhancement: Lightweight admin footer showing family links and current plugin
   version.
 * Enhancement: Dashboard now records real response body size in bytes for every
   AI bot hit.
 * Fix: Dashboard stat cards no longer render doubled percent signs.

#### 1.0.4

 * New: Setup wizard now detects Bunny CDN, Fastly, KeyCDN, Sucuri, StackPath, and
   Akamai in addition to Cloudflare.
 * New: Dashboard hero now shows total hits, blocked, allowed, and distinct bots
   side by side instead of a single hits number.
 * Enhancement: Wizard step 3 rewritten to name whichever CDN is detected in front
   of your site.
 * Enhancement: Cloudflare-detected callout on the dashboard now sits above the 
   stat row for clearer visual precedence.
 * Enhancement: Redundant Settings button removed from the dashboard toolbar.
 * Enhancement: Admin footer on plugin pages now credits Royal Plugins.
 * Enhancement: Plugin listing banner refreshed with evergreen copy.

#### 1.0.3

 * New: Bot policy import/export as JSON from a new Backup and portability section
   on the Settings page.
 * New: Anonymous usage data toggle (opt-in, off by default) with full disclosure
   and privacy-policy integration.
 * Enhancement: Setup wizard compatibility catalog expanded to 23 recognized plugins.
 * Enhancement: Setup Wizard entry removed from the sidebar submenu (re-run it from
   Settings).

#### 1.0.2

 * Enhancement: Bot fingerprint catalog refreshed to 68 recognized bots.
 * Enhancement: Setup wizard reads the catalog size dynamically instead of hardcoding
   a count.
 * Enhancement: User-Agent example in readme and support docs is now version-agnostic.
 * Fix: Anthropic legacy user agents softened to log-only to match vendor guidance.
 * Fix: Mistral entry now points at the vendor’s canonical robots documentation.

#### 1.0.1

 * Enhancement: Setup wizard compatibility step now recognizes 19 popular security
   and caching plugins.
 * Enhancement: Compatibility step renders only plugins detected as active on your
   site.
 * Enhancement: Persistent note invites suggestions when a customer’s active plugin
   is not yet recognized.

#### 1.0.0

 * New: Initial release.

## Meta

 *  Version **1.0.13**
 *  Last updated **7 days ago**
 *  Active installations **70+**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.2**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [AI](https://wordpress.org/plugins/tags/ai/)[bot](https://wordpress.org/plugins/tags/bot/)
   [firewall](https://wordpress.org/plugins/tags/firewall/)[mcp](https://wordpress.org/plugins/tags/mcp/)
   [security](https://wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://wordpress.org/plugins/royal-ai-firewall/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ Royal Plugins ](https://profiles.wordpress.org/royalpluginsteam/)

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.royalplugins.com)