Cloudflare Turnstile Setup Guide

Quick Setup

  • Create account at Cloudflare.com
  • Access Turnstile via sidebar: Security → Turnstile
  • Create widget → Fill form:
  • - Site Name: Your choice

    - Domain/Hostname: Add your domains (no http/https)

    Example: yourdomain.com

    - Widget Type: Managed (recommended)

    - Mode: Testing (dev) or Managed (production)

    Note: This isn't available to some people. Just ignore if so

    Then smash the submit..

  • Copy keys after creation:
  • - Site Key: 0x4AAAAAAAB...

    - Secret Key: 0x4AAAAAAAB...

  • Update config:
  • php
    define('CLOUDFLARE_TURNSTILE_ENABLED', true);
    define('CLOUDFLARE_TURNSTILE_SITE_KEY', 'your-site-key');
    define('CLOUDFLARE_TURNSTILE_SECRET_KEY', 'your-secret-key');

    You can also update this easily by navigating to your-domain /configs-manager/other-apis > cloudflare-turnstile without coding.

    ---

    Important Notes

    Chat with us on WhatsApp 1