Akamai

Learn how to integrate TollBit with Akamai.

We provide a way for all Akamai customers to stream logs to our platform, as well as configure agent site.

Allow TollBit's IP Addresses

🚧

Required

TollBit must be able to reach your sites. We request your pages to set up your Agent Site. If our requests are blocked, challenged, or rate-limited, your Agent Site will not work correctly.

TollBit sends these requests from a fixed set of static IP addresses, published at https://tollbit.com/static-ips.txt. At the time of writing, the list is:

52.22.183.94
3.220.109.109

Always use the published list as the source of truth, and check it again if TollBit tells you it has changed.

Our requests use the user agent tollbot/1.0, so you may see it show up in your logs.

Add these addresses to an IP network list in Akamai. Then make sure that list is allowed through every security layer that could block or challenge our requests. This applies to every hostname you onboard with us:

  • App & API Protector / Kona Site Defender: IP/Geo Firewall, WAF rule exceptions, and rate controls.
  • Bot Manager, if enabled: make sure requests from these IPs are not denied, challenged, tarpitted, or served alternate content.
  • Any firewall or WAF in front of your origin servers, outside of Akamai.

If you are unsure whether your configuration blocks us, contact [email protected] and we will confirm from our side.

Steps for Analytics

Create a Stream with DataStream 2

You will need to first create a stream by going to your Akamai Control Center. Follow these instructions on how to create your stream.

Choose Data Parameters

When choosing data parameters, make sure to choose parameters that cover at least everything in the following sample log JSON. Also, please ensure that your log format is JSON.

{
  "version": 1,
  "streamId": "12345",
  "cp": "123456",
  "reqId": "1239f220",
  "reqTimeSec": "1573840000",
  "bytes": "4995",
  "cliIP": "128.147.28.68",
  "statusCode": "206",
  "proto": "HTTPS",
  "reqHost": "test.hostname.net",
  "reqMethod": "GET",
  "reqPath": "/path1/path2/file.ext",
  "reqPort": "443",
  "rspContentLen": "5000",
  "rspContentType": "text/html",
  "UA": "Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_14_3%29",
  "tlsOverheadTimeMSec": "0",
  "tlsVersion": "TLSv1",
  "objSize": "484",
  "uncompressedSize": "484",
  "overheadBytes": "232",
  "totalBytes": "0",
  "queryStr": "param=value",
  "breadcrumbs": "//BC/%5Ba=23.33.41.20,c=g,k=0,l=1%5D",
  "accLang": "en-US",
  "range": "37334-42356",
  "referer": "https%3A%2F%2Ftest.referrer.net%2Fen-US%2Fdocs%2FWeb%2Ftest",
  "xForwardedFor": "8.47.28.38",
  "maxAgeSec": "3600",
  "reqEndTimeMSec": "3",
  "errorCode": "ERR_ACCESS_DENIED|fwd_acl",
  "turnAroundTimeMSec": "11",
  "transferTimeMSec": "125",
  "dnsLookupTimeMSec": "50",
  "lastByte": "1",
  "country": "IN",
  "state": "Virginia",
  "city": "HERNDON",
  "customField": "sig_agent%3D%22https%3A%2F%2Fchatgpt.com%22%7Csig_input%3D...%7Csig%3D..."
}

The customField value carries the Web Bot Auth headers, as described below.

Log Web Bot Auth Headers

Some AI agents sign their requests with Web Bot Auth, which adds the Signature-Agent, Signature-Input, and Signature request headers. DataStream 2 has no built-in fields for these headers, so log them through the custom log field (customField) in this format:

sig_agent=<Signature-Agent>|sig_input=<Signature-Input>|sig=<Signature>

Each <...> is the value of that request header, for example by copying the header into a property variable and referencing it in the custom log field. Then include Custom field in your stream's data parameters.

The custom log field is shared by every stream on the property and is limited to 1000 bytes. If it is already in use, for example by another vendor's integration, check with that vendor whether it can hold additional data. If it can, add the format above after the existing value, separated by |.

Stream to Endpoint

To forward your logs to us, follow the steps outlined here. The endpoint url that you should be streaming to is https://log.tollbit.com/log/akamai.

For authentication, select Basic (see Akamai's setup steps). Enter tollbit as the username and your secret key from your dashboard as the password. For the content type, you can select application/json. You don't need to add a custom header.

Finally, you can review and activate your stream!

Steps for Agent Site

Akamai allows you to set up redirection rules at the edge using either Cloudlets or Content Protector.

  • For Cloudlets, please see the steps outlined below.
  • For Content Protector, please reach out to your Akamai account team and loop in [email protected] as well.

Cloudlets Set Up

To set up agent sites for Akamai with Cloudlets, you would use their Forward Rewrite Cloudlet. Follow the documentation here for reference.

📘

Pro Tip

If you are previously following our docs and have set up Agent Site via Edge Redirector to forward bot traffic to your tollbit subdomain, you would replace the Edge Redirector with the Forward Rewrite Cloudlet.

Setup New Origin
You’ll need to set up a new conditional origin that is your tollbit subdomain to have the forward rewrite cloudlet correctly route the request. Follow the docs here on doing this.

At a high level, you would go to Property Manager and create a new Conditional Origin with the server domain name url as your tollbit subdomain (i.e. tollbit.example.com). In the origin's settings, set Forward Host Header to Origin Hostname — TollBit serves agent content based on the tollbit subdomain hostname, so rewritten requests should arrive with the Host header set to tollbit.example.com rather than your site's incoming hostname. Ensure that this origin is activated and deployed.

Forward Rewrite Cloudlet
Create a new forward rewrite policy by following the docs here. Then create a forward rewrite rule following the docs here. For the match type, you want to match on if the request header’s User-Agent header contains one of the following user agents (case insensitive):

'AgentNativeSearchBot', 'AI2Bot', 'AionBot', 'AIWebIndex', 'Amazonbot', 'Amzn-SearchBot', 'Amzn-User', 'anthropic-ai', 'AteveSearchSourceUrlDiscovery', 'AzureAI-SearchBot', 'Bravebot', 'Bytespider', 'CCBot', 'ChatGPT-User', 'claude-code', 'Claude-SearchBot', 'Claude-User', 'Claude-Web', 'Claude/', 'ClaudeBot', 'CloudflareBrowserRenderingCrawler', 'cohere-ai', 'Comet/', 'Cursor/', 'DesearchBot', 'Devin/', 'Diffbot', 'DuckAssistBot', 'Exabot', 'ExaSearchBot', 'ExaUser', 'Fellou', 'Gensparkbot', 'GitHubCopilotRuntime', 'Google-Agent', 'Google-NotebookLM', 'goose/', 'GPTBot', 'grok-agent', 'GrokBot', 'Hermes-Agent', 'iaskspider', 'ibou-search', 'IbouBot', 'IsonSearchBot', 'Keenable', 'Kimi-SearchBot', 'KimiBot', 'Lightpanda', 'LinkupBot', 'Manus-User', 'meta-externalagent', 'meta-externalfetcher', 'meta-webindexer', 'MistralAI-User', 'MojeekBot', 'MySearchBot', 'OAI-AdsBot', 'OAI-SearchBot', 'OpenClaw', 'Perplexity-User', 'Perplexity/', 'PerplexityBot', 'rednote-websearch-bot', 'Reflectionbot', 'Shap-User', 'ShapBot', 'SofyaBot', 'TalarionSearchBot', 'Timpibot', 'YouBot'

Some AI agents sign their requests with Web Bot Auth instead of, or as well as, naming themselves in the User-Agent header. Signed requests carry a Signature-Input header containing web-bot-auth. To route these to your Agent Site as well, add a second rule to the same policy, with the same rewrite, that matches when the Signature-Input request header contains web-bot-auth (case-insensitive).

Ensure that the rewrite points to the new tollbit subdomain origin you added, while preserving the original URL path and query strings.

To verify the setup, request a page on your site with one of the user agents above (for example curl -A "GPTBot" https://example.com/some-article) and confirm the response body contains the agent version of the page. Once you’ve tested this appropriately, you can activate and deploy.

📘

Pro Tip

Cloudlets Policy Manager evaluates rules from top to bottom, and picks the first rule that matches. If you have other Cloudlets with rules that also intercept requests, they may match before the rule you just added.




Did this page help you?