This is the drop-in plugin — self-contained, zero dependencies, verified by published
IP ranges. It is the WordPress counterpart of the
Next.js middleware and
Cloudflare Worker. It ships in shadow mode (log-only),
so installing it can never change what your visitors see until you switch to Live.
What the plugin does
On every front-end request, attemplate_redirect (before your theme renders), it:
- Passes through anything that isn’t a known AI crawler — your site behaves exactly as before.
- Never touches search bots — Googlebot, Bingbot and Applebot always get your real page (the cloaking firewall).
- Verifies answer-engine crawlers by their published IP ranges, then — in Live mode — serves them your optimized artifact instead of your HTML page.
- Reports every hit to Agent Analytics, so you see who crawled what and whether it was served.
Before you start
- A WordPress site you can add a plugin to (WordPress 5.6+, PHP 7.4+).
- An edge token from Agent Analytics → Setup in the Bluesky app (format
aen_...).
Install it
- Upload the plugin (recommended)
- Single file (no zip)
Download the plugin
Get bluesky-aen.zip —
or use the Download plugin button under Agent Analytics → Setup → WordPress in the app.
Upload and activate
In WordPress admin, go to Plugins → Add New → Upload Plugin, choose the
.zip,
click Install Now, then Activate.Test it
The plugin ships in shadow mode — it serves your normal page to everyone and only logs what it would have served, so there is zero risk while you validate.Trigger a real AI crawler
Open ChatGPT (or Perplexity) with browsing and ask a question that makes it look up your
site. Its crawler fetches your page from a published OpenAI IP.
Watch the hit land
The plugin detects the crawler as
IP_VERIFIED and the visit appears in
Agent Analytics, broken down by agent and verification level.Go live
Once you see verified hits, switch the serve mode to Live in Agent Analytics → Setup.
No redeploy — the plugin reads the mode from the dashboard. Verified answer-engine agents now
receive the optimized artifact. See Serve modes.
Caching
If you run a full-page cache (WP Super Cache, W3TC, LiteSpeed, or a CDN), it may serve a cached HTML page to crawlers before the plugin runs. Exclude AI crawler user-agents from the cache (e.g.ChatGPT-User, PerplexityBot, ClaudeBot, Google-Extended) so the
plugin can run for them. Human traffic stays fully cached.
Troubleshooting
No hits appear in Agent Analytics
No hits appear in Agent Analytics
Confirm the plugin is active, the edge token is saved under Settings → Bluesky AEN,
and you actually triggered a browsing AI. Only verified crawlers are counted.
My site looks unchanged
My site looks unchanged
That’s expected in shadow mode, and for every human visitor in any mode — the plugin only
changes the response for verified AI crawlers.
The variant is never served (Live mode)
The variant is never served (Live mode)
The request must be
IP_VERIFIED, the crawler’s purpose must be enabled, and Bluesky must have
generated an artifact for that URL. Check the page’s status in Agent Analytics → Pages.Will this slow my site down?
Will this slow my site down?
No. Human and search-bot traffic passes straight through, served artifacts are pre-generated
and cached, and telemetry is sent non-blocking. If Bluesky is ever unreachable, the request
fails open to your normal page.
Full plugin source
The plugin is a single self-contained file — no Composer, no build step.bluesky-aen.php
bluesky-aen.php
bluesky-aen.php
How it differs from the other drop-ins
- It runs inside WordPress at
template_redirectpriority0, before your theme renders. - The client IP comes from
CF-Connecting-IP→X-Forwarded-For→REMOTE_ADDR(in that order), so it works behind Cloudflare or a load balancer. - The serve mode is read live from your dashboard (cached ~5 min) — no redeploy to go Live.