Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: MobileCS on April 12, 2025, 04:34:15 PM

Title: Cloudflare Turnstile for SMF
Post by: MobileCS on April 12, 2025, 04:34:15 PM
[Link to the mod](https://custom.simplemachines.org/index.php?mod=4430)

# Turnstile for SMF

### Description

Cloudflare Turnstile is a verification tool designed to replace CAPTCHAs.

It confirms that web visitors are real and blocks unwanted bots.

This modification allows you to use [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) instead of the built-in visual verification system.

It works on SMF 2.1.x only.

### Features

- Use Turnstile on your forum in place of or in combination with the built-in verification questions.
- Support for built-in Turnstile themes

### How to Use

You can enable Turnstile by going to:

Admin -> Configuration -> Anti-Spam

A set of free keys are required for operation which you can get on the [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) website.

### Changelog

v1.2
- Added: when Turnstile is enabled, make sure that SMF letter verification and reCAPTCHA are disabled
- Fixed: duplicate "verification failed" error messages in quick reply
- Fixed: code formatting

v1.1
- Added: option to choose widget size
- Fixed: cloudflare api.js only loads on pages that displays the widget

v1.0
- Inital release