Cloudflare Docs
Turnstile
Edit this page on GitHub
Set theme to dark (⇧+D)

Rotate the secret key

You can rotate the secret key using the following steps:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Go to Turnstile.
  3. In the widget overview, select Settings > Rotate Secret Key.
  4. Configure your website to use the new secret key.

The rotation occurs over the course of two hours. During this time, both the old secret key and the new secret key are valid. This allows you to swap the secret key while avoiding any issues with your website.