Skip to content

Commit ae07996

Browse files
cf_clearance
1 parent 78bc6d2 commit ae07996

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/docs/cloudflare-challenges/challenge-types/javascript-detections.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ Customers who enabled Enterprise Bot Management before June 2020 do not have Jav
7575
7676
### If it is the first request to your website
7777
78-
The first request from a new client to your website or application will generally not have JavaScript Detections data (`cf.bot_management.js_detection.passed` = `false`). This is because Cloudflare needs at least one HTML request before injecting JavaScript Detection and issuing the `cf-clearance` cookie.
78+
The first request from a new client to your website or application will generally not have JavaScript Detections data (`cf.bot_management.js_detection.passed` = `false`). This is because Cloudflare needs at least one HTML request before injecting JavaScript Detection and issuing the `cf_clearance` cookie.
7979
80-
Subsequent requests can include a `cf-clearance` cookie if JavaScript ran successfully.
80+
Subsequent requests can include a `cf_clearance` cookie if JavaScript ran successfully.
8181
8282
### If you have a Content Security Policy (CSP)
8383

src/content/partials/cloudflare-challenges/javascript-detections-process.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ JavaScript is injected only in response to requests for HTML pages or page views
1212

1313
JavaScript Detections have a lifespan of 15 minutes. However, the code is injected again before the session expires. After page load, the script is deferred and utilizes a separate thread (where available) to ensure that performance impact is minimal. The snippets of JavaScript will contain a source pointing to the Challenge Platform, with paths that start with `/cdn-cgi/challenge-platform/…`
1414

15-
Once the JavaScript Detection is injected on the HTML page, the visitor's browser will run the JavaScript code snippet and a `cf-clearance` cookie is issued to the visitor. The information in JavaScript Detections is stored in the `cf-clearance` cookie and is used to populate `js_detection.passed`.
15+
Once the JavaScript Detection is injected on the HTML page, the visitor's browser will run the JavaScript code snippet and a `cf_clearance` cookie is issued to the visitor. The information in JavaScript Detections is stored in the `cf_clearance` cookie and is used to populate `js_detection.passed`.
1616

17-
- If the visitor is verified and a cf-clearance cookie is issued, it will contain the outcome: `cf.bot_management.js.detection.passed` = `true`
17+
- If the visitor is verified and a `cf_clearance` cookie is issued, it will contain the outcome: `cf.bot_management.js.detection.passed` = `true`
1818
- If the verification fails, the cookie will contain the outcome: `cf.bot_management.js.detection.passed` = `false`
1919

2020
:::note
21-
The `cf-clearance` cookie cannot exceed the maximum size of 4096 bytes.
21+
The `cf_clearance` cookie cannot exceed the maximum size of 4096 bytes.
2222
:::
2323

2424
:::caution
@@ -27,4 +27,4 @@ Enforcement against bots do **not** occur even if the cookie is flagged false.
2727
You must enable JavaScript Detections and then create a custom WAF rule using the `cf.bot_management.js.detection.passed` field to block or challenge a failed request.
2828
:::
2929

30-
When the visitor encounters a WAF custom rule on your website, the rule will check the outcome of the `cf-clearance` cookie. The outcome of the `cf-clearance` cookie determines whether the request passes, or is blocked or challenged.
30+
When the visitor encounters a WAF custom rule on your website, the rule will check the outcome of the `cf_clearance` cookie. The outcome of the `cf_clearance` cookie determines whether the request passes, or is blocked or challenged.

0 commit comments

Comments
 (0)