Installation
Install the Xenarch plugin from the WordPress plugin directory, or upload the zip manually.Setup
- Go to Settings > Xenarch in WordPress admin
- Enter your site token (
st_...) - Set your payout wallet address
- Configure default pricing
- Enable gating
Features
Bot detection
The plugin detects 135+ known AI bot signatures across 6 categories:| Category | Examples | Default |
|---|---|---|
| AI Search | Google AI, Perplexity, You.com | Gated |
| AI Assistants | ChatGPT, Claude | Gated |
| AI Agents | Custom agents, MCP clients | Gated |
| AI Training | GPTBot, CCBot, Common Crawl | Gated |
| Scrapers | Diffbot, Webz.io | Gated |
| General AI | Other AI-identified bots | Gated |
Pricing rules
Set path-specific pricing:- Default price for all pages
- URL pattern overrides (e.g.,
/premium/*at $0.01) - Free paths (price = $0)
What passes through
- Human visitors — always pass through, zero impact
- Search crawlers (Google, Bing) — allowlisted by default
- Social previews (Twitter, LinkedIn) — allowlisted by default
- Bots with valid tokens — pass through after payment
pay.json auto-generation
The plugin automatically serves/.well-known/pay.json based on your pricing configuration. No manual file creation needed.
Bot logging
The plugin logs detected bots to thewp_xenarch_bot_log table:
- Signature, category, company
- First seen, last seen, hit count
- Auto-categorizes unknown bots
How it works
- Request comes in
- Plugin checks: admin page? Logged-in user? Allowlisted path? → skip
- Checks User-Agent against known bot signatures
- If bot detected: checks category toggles and per-bot overrides
- If gated: checks for valid
Authorization: Bearertoken - If no token: returns HTTP 402 with payment gate details
- Agent pays USDC on Base, verifies, gets access token
- Agent re-requests with token → content served
Requirements
- WordPress 6.0+
- PHP 7.4+
- A Xenarch publisher account with registered site