Skip to main content
This guide adds two rules to the Akamai property that already fronts your domain. The first rule checks each request’s user-agent; requests from recognized AI agents (GPTBot, ClaudeBot, Google-Extended, and similar) go to the Publive CDS backend instead of your origin. Everything else — human visitors and SEO bots — passes through untouched. There’s no code to deploy and no EdgeWorkers entitlement needed.
Make sure PubliveBot/1.0 (+https://axp.thepublive.com/bot) is unblocked on your CDN, including in Akamai Bot Manager. CDS fetches your origin pages to build the agent view, so if this is blocked, nothing works.
Make sure LLM user agents (GPTBot, ClaudeBot, Google-Extended, and similar) are unblocked on your CDN, in robots.txt, and in any firewall/WAF rules. If one of these layers blocks a bot before it reaches the routing rule, that traffic never gets a chance to route to AXP Edge.

Prerequisites

  • Access to Akamai Property Manager for your domain, with permission to activate.
  • The Advanced behavior on your contract (used once, in Step 5). If you don’t see it, ask your Akamai account team. Without it failover still works — you just lose the x-pl-fo marker.
  • Your Publive Edge CDS API key (issued per client, support@thepublive.com if you don’t have one).
  • Access to the Akamai staging network.

How routing works

A request goes to AXP Edge only when all of these are true:
  • The hostname matches your domain.
  • The method is GET or HEAD, and the path is an HTML page rather than a static asset.
  • The user-agent matches a known AI agent.
  • The request doesn’t already carry x-pl-request (the loop guard, set on failover).
Anything else falls through to your origin exactly as before. CDS serves agent views under a path prefix, so www.example.com/pricing becomes cds.thepublive.com/axp/view/pricing. Akamai handles that with Origin Base Path, which prepends the prefix automatically — the query string and the rest of the path come along unchanged. The original URL also travels in the x-pl-url header, matching the Cloudflare and Vercel integrations. If CDS errors or is unreachable, Site Failover sends the request to your origin and tags the response x-pl-fo: 1. Visitors never see an error.

Set up the integration

You’ll create two rules as siblings at the same level:
1

Create the property variables

Under Property Configuration Settings → Property Variables, add:Only the API key needs a value. The other three are scratch variables — Property Manager can’t copy one header into another directly, so they act as a hop. You’ll fill them at request time, later on in Step 4.
2

Create the routing rule

Add a rule named AXP Edge Routing and set its criteria to match all of:
  • Hostname is one of www.example.com
  • Request Method is one of GET, HEAD
  • File Extension is one of html, htm, EMPTY_STRING
  • Request Header x-pl-request does not exist
  • User-Agent matches one of:
EMPTY_STRING covers extensionless page URLs. This is the same agent list the Cloudflare and Vercel integrations ship with — add or remove entries per domain, and keep them consistent across properties for the same brand.
File Extension is an allowlist, so pages served from any other extension are silently skipped. If your site serves HTML from .php, .aspx, or .jsp, add those here too. Going the other way: if you have extensionless routes that aren’t pages (/api/, health checks), add a Path criterion excluding them.
3

Point the rule at CDS

Inside the routing rule, add Origin Server:Your real host reaches CDS in the x-pl-host header, so forwarding the origin hostname here is correct — it lets CDS terminate TLS and resolve its own vhost.
Don’t add a Modify Outgoing Request Path behavior to this rule. Origin Base Path already produces the prefix, and it can’t be overridden — a path rewrite composes on top of it and you’d get /axp/view/axp/view/pricing.
If activation fails after adding this rule, check whether it uses a different Origin SSL verification mode than your default rule, and match it.
4

Set the headers

First add three Set Variable behaviors to capture the headers CDS needs passed through:Next, strip any inbound x-pl-* headers. These are all set by the edge, so an inbound one is either a mistake or someone probing. Add a Modify Incoming Request Header behavior with action Delete for each:
Then add the real ones, with action Add:Finally, one Modify Outgoing Request Header with action Add: x-forwarded-host set to {{builtin.AK_HOST}}.
The deletes must be ordered before the adds. Don’t delete the Host header — Akamai manages that through Forward Host Header.
5

Turn off caching and add failover

Add Caching and set it to No Store. CDS caches agent views itself, matching the Cloudflare and Vercel integrations. This also means an agent response and a human response can never collide on a shared cache key.Add Site Failover: trigger on origin 4xx and 5xx plus connection errors, alternate hostname set to your default origin, preserve path and query.Then add the Advanced behavior so the failed-over request is identifiable:
6

Add the failover test rule

Create a second rule named AXP Edge Failover Test Header as a sibling of the routing rule, not nested inside it:
  • Criteria: Request Header x-pl-request matches fo
  • Behavior: Modify Outgoing Response Header → Add x-pl-fo = 1
As a sibling it evaluates for all routing rules rather than just one. This is what makes failover visible in a curl and in the AXP Edge dashboard.
7

Activate

Activate on the Akamai staging network first, run the checks below, then activate to production. Both rules go out together.Before you do, check that no later rule resets Origin Server, Origin Base Path, or Caching for these requests — in Property Manager, last match wins.

Verify

  • Bot traffic: a request with an AI agent user-agent returns x-pl-request-id, confirming it was served by CDS.
  • Human traffic: a normal browser request has no x-pl-request-id, and content and response time are unchanged.
  • Right page: request two different bot URLs and confirm you get two different pages. This is the check that the path prefix is composing correctly.
  • Failover: point the CDS origin at an unreachable hostname on staging, resend the bot request, and confirm x-pl-fo: 1 with your real origin page in the body — not a 404.
Routing status also shows in the AXP Edge dashboard under Brand Configuration → Integrations → CDN, which turns green once agent traffic is observed.

Troubleshooting

Rollback

Deactivate or delete the AXP Edge Routing rule and reactivate the property. Traffic returns to your origin within minutes, and there’s no origin-side state to unwind. The failover test rule is harmless to leave in place.

Next steps

AXP Edge dashboard

Monitor agent traffic and manage optimization rules.

Deploy on Cloudflare

Not on Akamai? Use the Cloudflare Worker-based guide instead.

Deploy on Vercel

Integrating a Next.js app on Vercel instead? Use the middleware-based guide.
Last modified on August 10, 2026