Rotate secret key
You can rotate the secret key using the following steps:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to Turnstile.
- In the widget overview, select Settings > Rotate Secret Key.
- 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.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark