Home / Guides / What is /cdn-cgi/?

Guide · Cloudflare

What is /cdn-cgi/?

By SearchWebCode · Updated November 23, 2026 · Cloudflare · 2 min read

An orange route leading through a cdn-cgi path tag.
/cdn-cgi/ is a Cloudflare-managed endpoint prefix. The rest of the path helps identify the feature. Inspect the request hostname and context when interpreting it.

A familiar-looking path can appear in an actual request, a link, a comment or a quoted example. Start with the full URL and the document that references it. The path text alone does not explain whether your browser contacted Cloudflare for that page.

Who manages the endpoint?

Cloudflare documents /cdn-cgi/ as a managed endpoint on domains added to its service. It is not an ordinary CMS folder that a site owner edits like a theme or upload directory.

Different Cloudflare features use paths below the prefix. The presence of one feature does not establish that every other feature is enabled.

Read the part after the prefix

Example pathDocumented purposeUseful context
/cdn-cgi/challenge-platform/Challenge and bot-related functionality.The request's initiator and page flow.
/cdn-cgi/image/Image transformations.The complete image URL and hostname.
/cdn-cgi/rumWeb Analytics reporting in supported setups.The request method and beacon context.

These examples illustrate documented uses, not every possible endpoint. Follow Cloudflare's current endpoint reference for a path you need to configure or troubleshoot.

Check the hostname and selected response

  1. Open Network and select the actual request.
  2. Read the full request URL and method.
  3. Check the initiator to see what caused it.
  4. For a delivery investigation, inspect the main document's response separately.

A third-party resource URL and a first-party document response are different evidence. The Cloudflare detection guide covers document headers, DNS and standalone widgets. The technology-stack guide shows how to record the layer each observation describes.

Why a direct visit can return an error

Opening a reporting URL in the address bar is not equivalent to the request a feature normally sends. Cloudflare's current /cdn-cgi/rum documentation describes 405 Method Not Allowed for non-POST requests, with OPTIONS also supported for preflight. The analytics beacon sends its reports using POST.

A direct-visit error therefore needs method and feature context. Do not turn a GET result into a general claim that the site's analytics is broken. Use the normal feature and inspect its request when troubleshooting.

Handle crawler and configuration questions carefully

Cloudflare publishes crawler guidance for these managed paths. If applying a robots.txt rule, read its image-transformation exception: a broad rule can also affect transformed images. Follow the relevant feature documentation rather than copying a rule without checking how the site uses the prefix.

For source research, /cdn-cgi/ locates stored mentions to review. The browser search procedure helps distinguish a mention from a requested resource. Keep snapshot observations separate from a current network check.

References

See Cloudflare's endpoint reference, Web Analytics FAQ and RUM method-status change.

Source counts checked 2026-10-14. They describe stored homepages, not live installations. How the counts are measured.

Frequently asked questions

Is /cdn-cgi/ a directory I can edit in my CMS?

Cloudflare manages the documented endpoint. Use the relevant Cloudflare feature settings and documentation instead of treating it as an ordinary content folder.

Does a 405 on /cdn-cgi/rum mean analytics is broken?

Not by itself. The reporting endpoint expects the documented method; opening it in a browser normally sends GET. Inspect the beacon request in context.