Skip to content
EnterraHost
Products
Tools
Hosting Email Support Client Area Find a domain

Free and MIT licensed

Turnstile for MyBB

Spam protection for the three surfaces MyBB has never covered, which are the login form, the quick-login box and the Admin CP login. It also carries per-endpoint statistics, live diagnostics, alerts and one-click rollback.

Version 2.0.0. MyBB 1.8.x, PHP 7.4 or later. MIT licence. Every release publishes its sha256.

Why this exists

MyBB 1.8.40 added its own Turnstile, and that is the trap.

A plugin written before 1.8.40 will double up on some pages and do nothing on others. Two widgets on one form is a visitor who cannot pass either of them, and a form that asks for a check nothing can perform never submits at all.

This one probes what the running board can actually do and covers only what is missing. That is a runtime question rather than a version number, because a patched board is not always what its version string says.

It never asks for your keys twice either. If the board already has a site key and secret under General Settings, those are used and the plugin's own fields say so.

Measured, not claimed

The three surfaces below are tested on both boards, MyBB 1.8.38 and 1.8.41, which is how the overlap was found rather than assumed. The plugin's own test harness runs 43 checks without a board at all.

Which side protects each surface, by board version.
Surface1.8.39 and older1.8.40 and newer
RegistrationPluginMyBB
Guest posting, replies, new threadsPluginMyBB
Lost password, email a memberPluginMyBB
Login formPluginPlugin, MyBB has never had it
Quick-login popupPluginPlugin, MyBB has never had it
Admin CP loginPluginPlugin, MyBB has never had it
Statistics, diagnostics, alerts, updatesPluginPlugin
KeysPlugin's ownThe board's

What you get

The parts a CAPTCHA plugin usually leaves out.

Statistics per endpoint

Impressions, successes, failures and failure rate for every surface, over 30 days and 24 hours. A total tells you something is wrong. This tells you where.

Live diagnostics

One test tells you whether the keys are wrong, the hostname is wrong, or the server cannot reach Cloudflare. The report contains no secret, so it is safe to paste into a ticket.

Alerts that stay quiet

A private message to the usergroups you choose when failures cross a threshold, then a cooldown. Off by default, because a message per failure is noise.

Updates with rollback

Check, update and roll back from the settings page. Every update takes a backup first, and rollback works when the update server does not answer.

A pause that expires

Thirty minutes to four hours, ended by the clock. A forgotten pause cannot leave a board open for a month, which is what a switch someone had to remember to turn off does.

Exempt addresses

Single addresses, ranges and comments. An exempt visitor skips the widget and the validation on every surface the plugin owns.

Behind a CDN

The connection address, Cloudflare's visitor header, or the first entry in X-Forwarded-For, chosen explicitly. Behind a proxy the connection address is the proxy, so an exemption written against it matches everybody or nobody.

Nine languages

English, Spanish, Portuguese, Brazilian Portuguese, French, German, Russian, Chinese (Simplified), Thai and Vietnamese, with the widget following the board language.

Screenshots

The panels, from a live board.

The Turnstile statistics page in the MyBB Admin CP, with diagnostics, charts and a per-endpoint table.
Statistics and diagnostics, in the Admin CP under Tools and Maintenance.
The plugin settings page, ordered by protection switches, pause, exempt addresses and appearance.
The settings page, ordered by what you actually touch.
The alert settings and their armed status.
Alerts, and whether they are armed.
The Turnstile widget on the MyBB login form, above the password field.
The widget on the login form, which is the surface MyBB has never protected.

Install

Two files, activate, done.

  1. Download the zip above.
  2. Unzip it. Inside is Upload/inc/plugins/turnstile.php and a directory Upload/inc/plugins/turnstile/.
  3. Copy both into your board, keeping the paths.
  4. Go to Configuration, then Plugins and activate Cloudflare Turnstile.
  5. Go to Board Settings, then Cloudflare Turnstile and set your keys, unless the board already has them.

Activation creates the settings, the analytics table and the statistics link. No MyBB core file is edited, and the CAPTCHA selector only changes on boards that have no native Turnstile.

Then run the diagnostics under Tools and Maintenance, then Statistics. The verification test sends a deliberately invalid token, so the answer names the cause rather than saying pass or fail.

Requirements

What the board has to have.

RequirementWhat it is
MyBB1.8.x, tested on 1.8.38 and 1.8.41
PHP7.4 or later, tested on 8.3
PHP extensionscurl for verification and zip for the updater
A Cloudflare accountFree. One Turnstile widget per hostname.
Write accessinc/plugins/ for the install, and for the plugin to update itself

Releases

Every version, with its hash.

The list is read from the same file the plugin updates from, so this page and the updater cannot disagree.

VersionReleasedSizesha256Download
2.0.0 2026-11-20 93.1 KB 7d0255ed54dbde8c… Download

Read the changelog

Guides

When it does not work.

Elsewhere

Source and issues.

github.com/enterrahost/Cloudflare-Turnstile-for-MyBB

Turnstile is a Cloudflare service and is subject to Cloudflare's own terms. This plugin is not affiliated with or endorsed by Cloudflare or the MyBB Group.