Skip to content

Commit ac3c367

Browse files
[Turnstile] FAQ to Docs (#25600)
* FAQ to Docs * fixes * wording * redirect * feedback
1 parent 4787b5f commit ac3c367

File tree

14 files changed

+41
-276
lines changed

14 files changed

+41
-276
lines changed

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,6 +1632,7 @@
16321632
/turnstile/get-started/supported-browsers/ /cloudflare-challenges/reference/supported-browsers/ 301
16331633
/turnstile/troubleshooting/troubleshooting-faqs/ /turnstile/frequently-asked-questions/#troubleshooting 301
16341634
/turnstile/tutorials/protecting-your-payment-form-from-attackers-bots-using-turnstile/ /developer-spotlight/ 301
1635+
/turnstile/frequently-asked-questions/ /turnstile/ 301
16351636

16361637
# waf
16371638
/waf/about/ /waf/concepts/ 301

src/content/docs/cloudflare-challenges/troubleshooting/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Render } from "~/components"
1313
### Proxied hostnames
1414

1515
<Render file="proxied-hostnames" product="turnstile" />
16+
1617
<Render file="challenge-behavior" product="turnstile" />
1718

1819
### Deprecated browser support

src/content/docs/turnstile/concepts/widget.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { GlossaryTooltip, Render } from "~/components";
99

1010
Every instance of Turnstile belongs to a Turnstile widget. It is configured on a per-widget level. Every widget has a mode, a label, a <GlossaryTooltip term="sitekey">sitekey</GlossaryTooltip>, and a <GlossaryTooltip term="secret key">secret key</GlossaryTooltip>.
1111

12+
Turnstile is hosted under `challenges.cloudflare.com`. Your application will connect to this origin.
13+
1214
## Widget components
1315

1416
<Render file="widget-components" product="turnstile" />

src/content/docs/turnstile/frequently-asked-questions.mdx

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/content/docs/turnstile/get-started/client-side-rendering/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,12 @@ For a complete list of configuration options, refer to [Widget configurations](/
441441

442442
---
443443

444+
## Limitations
445+
446+
Turnstile is designed to function only on pages using `http://` or `https://` URI schemes. Other protocols, such as `file://`, are not supported for embedding the widget.
447+
448+
---
449+
444450
## Security requirements
445451

446452
<Render file="security-requirements" product="turnstile" />

src/content/docs/turnstile/get-started/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Implementing Turnstile involves two essential components that work together:
3939

4040
Verify the tokens on your server using the Siteverify API to ensure they are authentic and have not been tampered with.
4141

42+
Turnstile is designed to be an independent service. You can use Turnstile on any website, regardless of whether it is proxied through the Cloudflare network. This allows for flexible deployment across multi-cloud environments, on-premises infrastructure, or sites using other CDNs. The client-side widget and server-side validation steps are completely self-contained.
43+
4244
Refer to [Implementation](#implementation) below for guidance on how to implement Turnstile on your website.
4345

4446
---

src/content/docs/turnstile/get-started/server-side-validation.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ The API accepts both `application/x-www-form-urlencoded` and `application/json`
5252
- Single use: Each token can only be validated once
5353
- Automatic expiry: Tokens automatically expire and cannot be reused
5454

55+
The validation token issued by Turnstile is valid for five minutes. If a user submits the form after this period, the token is considered expired. In this scenario, the server-side verification API will return a failure, and the `error-codes` field in the response will include `timeout-or-duplicate`.
56+
57+
To ensure a successful validation, the visitor must initiate the request and submit the token to your backend within the five-minute window. Otherwise, the Turnstile widget needs to be refreshed to generate a new token. This can be done using the `turnstile.reset` function.
58+
5559
---
5660

5761
## Basic validation examples
@@ -684,6 +688,7 @@ if (result.success) {
684688
- Check additional fields. Validate the action and hostname when specified.
685689
- Monitor for abuse and log failed validations and unusual patterns.
686690
- Use HTTPS. Always validate over secure connections.
691+
- Only call the Siteverify API in your backend environment. If you expose the secret key in the front-end client code to call Siteverify, attackers can bypass the security check. Ensure that your client-side code sends the validation token to your backend, and that your backend is the sole caller of the Siteverify API.
687692
688693
### Performance
689694
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
pcx_content_type: concept
2+
pcx_content_type: reference
33
title: Supported browsers
44
external_link: /cloudflare-challenges/reference/supported-browsers/
55
sidebar:
6-
order: 3
6+
order: 4
77

88
---

src/content/docs/turnstile/reference/supported-languages.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Supported languages
33
pcx_content_type: reference
44
sidebar:
5-
order: 2
5+
order: 3
66

77
---
88

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
pcx_content_type: reference
3+
title: Turnstile Privacy Addendum
4+
external_link: https://www.cloudflare.com/turnstile-privacy-policy/
5+
sidebar:
6+
order: 2
7+
8+
---

0 commit comments

Comments
 (0)