guave/cloudflareturnstile-bundle

Cloudflare Turnstile for Contao

1.0.2 2025-06-03 12:00 UTC

This package is auto-updated.

Last update: 2025-06-03 12:01:15 UTC


README

This Contao module overrides the default security questions/captcha form field with Cloudflare Turnstile.

Requirements

  • Contao 4.13+
  • PHP 7.4 or 8.0+

Install

$ composer require guave/cloudflareturnstile-bundle

Usage

There are two ways to add the configuration needed:

a) Go to Settings in the Contao Backend and add your Turnstile Site Key and Secret Key under "Security: Cloudflare Turnstile"

or

b) Add your Turnstile Site Key and Secret Key on system/config/localconfig.php:

$GLOBALS['TL_CONFIG']['turnstilePublicKey'] = '<YOUR-SITE-KEY>';
$GLOBALS['TL_CONFIG']['turnstilePrivateKey'] = '<YOUR-SECRET-KEY>';