From 6777af3120a8b65b465de007d1ff2357b6d4ee25 Mon Sep 17 00:00:00 2001 From: Patricia Loraine Santa Ana Date: Wed, 5 Mar 2025 10:24:33 -0800 Subject: [PATCH 1/2] jsd ttl --- .../partials/bots/javascript-detections-definition.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/content/partials/bots/javascript-detections-definition.mdx b/src/content/partials/bots/javascript-detections-definition.mdx index f3df350b3d46893..6cfd1ada0e01a2b 100644 --- a/src/content/partials/bots/javascript-detections-definition.mdx +++ b/src/content/partials/bots/javascript-detections-definition.mdx @@ -11,6 +11,10 @@ JavaScript detections are another method that help Cloudflare identify bot reque ## What are JavaScript detections? -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. +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. The snippets of JavaScript will contain a source pointing to the challenge platform, with paths that start with `/cdn-cgi/challenge-platform/...` + +:::note +The information in JavaScript detections which populates `js_detection.passed` is stored in the `cf_clearance cookie`. +::: \ No newline at end of file From 638524d4d38a6b7d1dc2f579c534b7a0c05f4f97 Mon Sep 17 00:00:00 2001 From: Patricia Loraine Santa Ana Date: Wed, 5 Mar 2025 13:24:44 -0800 Subject: [PATCH 2/2] fix backticks --- src/content/partials/bots/javascript-detections-definition.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/partials/bots/javascript-detections-definition.mdx b/src/content/partials/bots/javascript-detections-definition.mdx index 6cfd1ada0e01a2b..cdd8ca9a6b1e68b 100644 --- a/src/content/partials/bots/javascript-detections-definition.mdx +++ b/src/content/partials/bots/javascript-detections-definition.mdx @@ -16,5 +16,5 @@ These detections are implemented via a lightweight, invisible JavaScript code sn The snippets of JavaScript will contain a source pointing to the challenge platform, with paths that start with `/cdn-cgi/challenge-platform/...` :::note -The information in JavaScript detections which populates `js_detection.passed` is stored in the `cf_clearance cookie`. +The information in JavaScript detections which populates `js_detection.passed` is stored in the `cf_clearance` cookie. ::: \ No newline at end of file