Skip to content

Route search and AI bots to EdgeComet from your CDN ​

EdgeComet serves search engines and AI bots from inside your request path. One routing rule at your CDN or proxy sends crawler requests to EdgeComet and every other request to your site as before, and one firewall rule lets EdgeComet's own requests through. Prerendering and dynamic rendering tools use the same routing pattern.

On Cloudflare, EdgeComet installs both rules for you in about a minute. On other platforms, you or your developers add the rule from a guide in the dashboard or from these pages.

Human visitors never pass through EdgeComet. Their pages, cookies and sessions stay as they are.

The CDN integration page with two steps. Step 1, Connect your CDN platform, recommends Connect Cloudflare, about one minute, which deploys the worker, adds the firewall allow rule, tunes asset routes and confirms the install with a test request. Below it are a link to the legacy manual worker guide and platform cards for Fastly VCL, AWS Lambda@Edge, Nginx and Generic Integration. Step 2, Add the Edge SEO snippet, is optional

How routing works ​

  1. Your CDN checks each request. Page requests from crawler user agents, such as Googlebot, GPTBot and ChatGPT-User, go to EdgeComet. Images, scripts, styles, robots.txt and sitemaps stay on your origin.
  2. EdgeComet answers from its cache. On a miss, it fetches the page from your origin, renders it in headless Chrome if your site uses rendering, stores it and serves it.
  3. When EdgeComet cannot answer, the rule sends the bot to your origin, which serves your regular page.

For the exact rules, headers and fallback, see How EdgeComet routes bot traffic. For what happens inside EdgeComet, see How EdgeComet serves search and AI bots.

Choose your platform ​

Your platformHow EdgeComet connectsDashboard guidePage
CloudflareAutomatic install of a Worker and a firewall ruleConnect CloudflareCloudflare
Cloudflare, with a Worker you already runEdgeComet's routing added to your WorkerLegacy: manual worker install guideExisting Cloudflare Worker
FastlyVCL snippetsFastly VCLFastly
AWS CloudFrontTwo Lambda@Edge functionsAWS Lambda@EdgeCloudFront
AkamaiA Property Manager ruleNoneAkamai
Nginxmap blocks and a named locationNginxNginx
Apachemod_rewrite and mod_proxyNoneApache
HAProxyACLs and a backendNoneHAProxy
IISA URL Rewrite rule proxied through ARRNoneIIS
ShopifyYour own Cloudflare zone in front of the store, then the Cloudflare installConnect CloudflareShopify
Salesforce Commerce CloudYour own Cloudflare zone in front of the storefront, then the Cloudflare installConnect CloudflareSalesforce Commerce Cloud
Any other CDN or proxyA rule you write from the routing rulesGeneric IntegrationOther CDNs and proxies

If your site runs behind two layers, such as a CDN in front of Nginx, add the rule at the outer layer, the one bots connect to.

Before you start ​

  • A website in EdgeComet. See Add your first website.
  • Access to your CDN or proxy configuration, or the person who manages it. To give your developers the technical details for a review, send EdgeComet for developers.
  • Your Render Key and Render Host. Every guide in the dashboard shows them, together with your domain. For a platform with no guide in the dashboard, open Generic Integration.

Set up from the dashboard ​

  1. Open Configuration > Connections > CDN integration, or click Start setup on the website's Getting started page.
  2. Click Auto-detect. EdgeComet checks your site's response headers and suggests a platform. Click Re-detect to run it again, or pick another platform.
  3. On Cloudflare, follow Install EdgeComet on Cloudflare automatically. On other platforms, click Open setup guide.
  4. The guide is filled in with your render key, render host and domain. Click Download Markdown to send it to whoever manages your CDN.
  5. Add the routing rule and the firewall allow rule from the guide, or from the page for your platform.
  6. Click Test connection under Step 3: Verify connection. EdgeComet fetches your homepage with your render key and passes on HTTP 200, which confirms that your firewall lets it through.
  7. Click Verify install under Step 4: Verify install. EdgeComet requests your homepage as Googlebot and checks that EdgeComet answered. Then it requests it as a browser and checks that no EdgeComet headers reach your visitors.

The Nginx Reverse Proxy guide in the dashboard, with a contents list on the left, the prerequisites, and an EdgeComet Credentials block holding the render key, blurred, the render host and the domain

Steps 3 and 4 of a manual guide. Step 3, Verify connection, shows the render key, blurred, a curl command that sends it with a Googlebot user agent, and the result EdgeComet is reaching your origin with a Re-check button. Step 4, Verify install, explains the Googlebot and visitor checks above a Verify install button

Let EdgeComet through your firewall ​

EdgeComet fetches your pages through your CDN like any other client, and every page request carries your render key in X-Render-Key. Allow requests whose X-Render-Key equals your key through your WAF, rate limits and bot protection. EdgeComet publishes no IP list.

The Cloudflare install adds this rule for you. For every other product, see Let EdgeComet through your firewall.

The Edge SEO snippet is a separate step ​

Step 2 on the CDN integration page, Add the Edge SEO snippet, is optional and unrelated to routing. Bots get Edge SEO changes through the routing rule.

The snippet applies the same changes in visitors' browsers. See Show Edge SEO changes to visitors.

What you should see ​

  • Connect your CDN platform shows Done with the platform and install date. It marks itself done once Verify install passes, or at the first visit from a verified bot.
  • Getting started reads EdgeComet is installed on your domain, then waits for the first verified bot visit, usually within 24 hours.

Next, check that bots reach EdgeComet.

If it does not work ​

For Cloudflare install messages, see Cloudflare: If it does not work.

"Connection test failed. EdgeComet could not reach your site." ​

Your firewall or bot protection blocked EdgeComet's request, or your homepage did not answer with HTTP 200. Check the allow rule for X-Render-Key, then click Test connection again. See Let EdgeComet through your firewall.

Verify install says the CDN "answered the bot request itself" ​

The request as Googlebot never reached EdgeComet, or it fell back to your origin. Check that the routing rule is deployed and matches crawler user agents, and that the render key in it is correct.

A wrong key gets a 401, which most setups answer from your origin. On CloudFront, bots get the 401 itself. See What EdgeComet answers.

"Real visitors are receiving EdgeComet headers" ​

The routing rule sends more than bot traffic to EdgeComet. Check its user agent condition, which must match only the crawler patterns.