CDN Integrations
Redirect AI bot traffic from your main website to your xpay portal, so bots pay for content instead of scraping it for free.
How It Works
AI bot → your-site.com/article → CDN detects bot User-Agent
→ 302 redirect to xpay.your-site.com/article
→ xpay portal checks auth (API key, x402, or none)
→ Serves content (paid) or returns 402 with payment optionsYour CDN acts as the bouncer — it detects AI bots and redirects them. xpay is the business layer — it handles pricing, authentication, MCP protocol, payouts, and analytics.
Search engines are never redirected. Googlebot, BingBot, and other search crawlers pass through to your main site normally. Only AI-specific bots (GPTBot, ClaudeBot, PerplexityBot, etc.) are redirected.
What Your CDN Can’t Do (Our Value)
CDN-level bot blocking can only Allow or Block (403). It cannot:
- Freemium pricing — search free, full articles paid
- Per-section pricing — drug data $0.10, articles $0.01
- API key management and metering
- MCP protocol support — standard agent interface
- x402 payments — direct wallet-to-wallet, no account needed
- Revenue sharing and payouts via Stripe Connect
- Widget and affiliate commerce
- Per-query analytics by tool, agent, and publisher
That’s why we redirect to xpay instead of just blocking.
Available Integrations
| Platform | Method | Status |
|---|---|---|
| Cloudflare | Redirect Rules (all plans, no code) | Full guide |
| Fastly | VCL-based bot detection and redirect | Under development |
| Akamai | Edge Redirector / Cloudlets | Under development |
| AWS CloudFront | WAF rules + CloudFront Functions | Under development |
Prerequisites
Before setting up CDN integration, ensure:
- Your xpay portal is live — sign up at app.xpay.sh and your content is indexed
- CNAME record added — point
xpay.your-domain.comto Vercel (88c9f95bf3ca4d4d.vercel-dns-016.com) - Portal loads — visit
https://xpay.your-domain.comand confirm it shows your branded portal
After Setup
Once your CDN is redirecting bots:
- Host discovery files on your main site — download from Account Config and upload
llms.txt,agents.txt,robots.txtadditions,.well-known/mcp.json, andskill.md - Monitor traffic in your CDN dashboard to see which bots are being redirected
- Check revenue at app.xpay.sh/dashboard for query analytics and earnings
Don’t skip the discovery files. They tell AI agents where to find your paid content endpoint. Without them, agents won’t know your content is available via API — they’ll just see a 403 block.