Essential vendor · Cloudflare, Inc.

Cloudflare Cookies: List With Purpose and Retention

Last verified 2026-10-16 · Updated 2026-10-16

On this page
  1. Cookies Cloudflare sets
  2. Scripts, pixels, and endpoints
  3. Does Cloudflare need consent?
  4. How to add Cloudflare to a consent banner
  5. Who runs Cloudflare
  6. Cloudflare cookie FAQs
  7. Sources

Scripts, Pixels, and Endpoints Cloudflare Loads

Cloudflare loads 3 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.

TypeResourceHostWhat it does
ScriptCloudflare Turnstile (api.js)challenges.cloudflare.comThe Turnstile script shows the Cloudflare challenge widget that protects a form from bots.
ScriptCloudflare Web Analytics beacon (beacon.min.js)static.cloudflareinsights.comThe Web Analytics beacon measures page views and page speed for the Cloudflare Web Analytics dashboard.
Data endpointCloudflare Web Analytics endpoint (cdn-cgi/rum)cloudflareinsights.comThe Web Analytics endpoint receives the page view and timing data from the beacon.

Who Runs Cloudflare

Cloudflare, Inc. runs Cloudflare from the United States. Cloudflare sits in front of your web server as a reverse proxy, so its cookies reach the visitor in the HTTP responses of your own domain.

Read how Cloudflare, Inc. handles the data in the Cloudflare privacy policy, and sign the Cloudflare Customer Data Processing Addendum before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

Cloudflare Cookie FAQs

Does Cloudflare need consent?

No, the Cloudflare cookies need no consent in the EU and the UK, and need no prior opt-in in California. Firstly, the ePrivacy Directive exempts the strictly necessary cookies of Cloudflare from consent while the cookies stay strictly necessary. Secondly, the UK PECR exempts the strictly necessary cookies of Cloudflare from consent while the cookies stay strictly necessary. Thirdly, the CCPA sets no general opt-in requirement for the strictly necessary cookies of Cloudflare, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.

How long do Cloudflare cookies last?

The cookies of Cloudflare with a documented lifetime last up to 30 minutes (1800 seconds), and 4 cookies last for the browser session. A session cookie such as __cflb has no expiry date, and the __cf_bm cookie lasts longest. 2 cookies have no documented lifetime. Check their expiry in Chrome DevTools on your own site. The retention column of the cookie list gives the lifetime of each cookie.

How do I handle Cloudflare cookies in a consent banner?

List the Cloudflare cookies in your Cookies Policy as strictly necessary cookies, because Cloudflare sets them for every visitor. Cloudflare sets the cookies in HTTP response headers, so no script on your page needs a tag in TermsFeed Free Cookie Consent. The page of the __cf_bm cookie gives the steps and the checks.

Sources for the Cloudflare Cookies

The facts on this page come from the documentation Cloudflare publishes, checked on 2026-10-16. The list gives every source, so you check each fact yourself.