Cloudflare Cookies
Cloudflare uses various cookies to maximize network resources, manage traffic, and protect our customers’ sites from malicious traffic.
Understanding the Cloudflare Cookies
As defined in our Privacy Policy, the __cflb
, __cf_bm
, cf_ob_info
and cf_use_ob
, __cfwaitingroom
, and __cfruid
cookies are strictly necessary to provide the services requested by our customers.
As mentioned in our Privacy Policy, Cloudflare encourages our customers to disclose the use of these cookies to their end users and, in some jurisdictions, customers may be required by law to disclose these cookies to their end users.
Cookie data is processed in Cloudflare’s data center in the United States and is subject to the cross-border data transfer section 7 of the Cloudflare Privacy Policy.
__cflb cookie for Cloudflare Load Balancer session affinity
When enabling session affinity with Cloudflare Load Balancer, Cloudflare sets a __cflb
cookie with a unique value on the first response to the requesting client. Cloudflare routes future requests to the same origin, optimizing network resource usage. In the event of a failover, Cloudflare sets a new __cflb
cookie to direct future requests to the failover pool.
The __cflb
cookie allows Cloudflare to return an end user to the same customer origin for a specific period of time configured by the customer. This allows the end user to have a seamless experience (for example, this cookie is used for keeping an end user’s items in a shopping cart while they continue to navigate around the website). This cookie is a session cookie that lasts from several seconds up to 24 hours.
__cf_bm cookie for Cloudflare bot products
Cloudflare’s bot products identify and mitigate automated traffic to protect your site from bad bots. Cloudflare places the __cf_bm
cookie on end-user devices that access customer sites protected by Bot Management or Bot Fight Mode. The __cf_bm
cookie is necessary for these bot solutions to function properly.
This cookie expires after 30 minutes of continuous inactivity by the end user. The cookie contains information related to the calculation of Cloudflare’s proprietary bot score and, when Anomaly Detection is enabled on Bot Management, a session identifier. The information in the cookie (other than time-related information) is encrypted and can only be decrypted by Cloudflare.
A separate __cf_bm
cookie is generated for each site that an end user visits, as Cloudflare does not track users from site to site or from session to session. The __cf_bm
cookie is generated independently by Cloudflare, and does not correspond to any user ID or other identifiers in a customer’s web application.
cf_ob_info and cf_use_ob cookie for Cloudflare Always Online
The cf_ob_info
cookie provides information on:
- The HTTP Status Code returned by the origin web server
- The Ray ID of the original failed request
- The data center serving the traffic
The cf_use_ob
cookie informs Cloudflare to fetch the requested resource from the Always Online cache on the designated port. Applicable values are: 0, 80, and 443. The cf_ob_info
and cf_use_ob
cookies are persistent cookies that expire after 30 seconds.
__cfwaitingroom for Cloudflare Waiting Rooms
Cloudflare’s Waiting Room product enables a waiting room for a particular host and path combination within a zone. Visitors are put in the waiting room and provided an estimate of when they will be allowed to access the application, if not immediately available.
The __cfwaitingroom
cookie is only used to track visitors that access a Waiting Room enabled host and path combination for a zone. Visitors using a browser that does not accept cookies cannot visit the host and path combination while the Waiting Room is active. For more details, see Waiting Room cookie.
__cfruid to support Cloudflare Rate Limiting (previous version)
The __cfruid
cookie is strictly necessary to support Cloudflare Rate Limiting products. As part of our Rate Limiting solution, this cookie is required to manage incoming traffic and to have better visibility on the origin of a particular request.
_cfuvid for Rate Limiting Rules
The Rate Limiting Rules product uses a number of techniques for applying rate limits to traffic where multiple unique visitors share the same IP address, such as traffic from behind a NAT. These techniques can be enabled by using the cf.unique_visitor_id
field in the rate limiting configuration.
The _cfuvid
cookie is only set when a site uses this option in a Rate Limiting Rule, and is only used to allow the Cloudflare WAF to distinguish individual users who share the same IP address. Visitors who do not provide the cookie are likely to be grouped together and may not be able to access the site if there are many other visitors from the same IP address.
Additional cookies used by the Challenge Platform
The table below shows additional cookies used by the Challenge Platform.
Cookie Name (XXX represents dynamic part) | Description |
---|---|
cf_clearance | Clearance Cookie stores the proof of challenge passed. It is used to no longer issue a captcha or jschallenge challenge if present. It is required to reach origin server. |
cf_cc_XXX ; cf_chl_cc_XXX ; cf_chl_seq_XXX ; cf_chl_prog | These cookies are used by Cloudflare for the execution of Javascript or Captcha challenges. They are not used for tracking or beyond the scope of the challenge. They can be deleted if seen. |
cf_chl_XXXX | This cookie is used to check whether the Cloudflare Edge server supports cookies. It can be deleted if seen. |
cf_chl_rc_i ; cf_chl_rc_ni | These cookies are for internal use which allows Cloudflare to identify production issues on clients. |