Skip to content

Commit 17b37a6

Browse files
[Bots] JSD TTL (#20562)
* jsd ttl * fix backticks
1 parent 6d32d88 commit 17b37a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/content/partials/bots/javascript-detections-definition.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ JavaScript detections are another method that help Cloudflare identify bot reque
1111

1212
## What are JavaScript detections?
1313

14-
These detections are implemented via a lightweight, invisible JavaScript code snippet that follows Cloudflare’s [privacy standards](https://www.cloudflare.com/privacypolicy/). JavaScript is injected only in response to requests for HTML pages or page views, excluding AJAX calls. API and mobile app traffic is unaffected. Additionally, code is not injected again until the current session expires. After page load, the script is deferred and utilizes a separate thread (where available) to ensure that performance impact is minimal.
14+
These detections are implemented via a lightweight, invisible JavaScript code snippet that follows Cloudflare’s [privacy standards](https://www.cloudflare.com/privacypolicy/). JavaScript is injected only in response to requests for HTML pages or page views, excluding AJAX calls. API and mobile app traffic is unaffected. 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.
1515

1616
The snippets of JavaScript will contain a source pointing to the challenge platform, with paths that start with `/cdn-cgi/challenge-platform/...`
17+
18+
:::note
19+
The information in JavaScript detections which populates `js_detection.passed` is stored in the `cf_clearance` cookie.
20+
:::

0 commit comments

Comments
 (0)