Turnstile

License Latest Stable Version Total Downloads

A Flarum extension. Implement Cloudflare Turnstile into your Flarum forum.

Turnstile is a CAPTCHA alternative that is privacy-focused. As of writing, Turnstile is in beta, and free to all Cloudflare customers on any plan.

To configure this extension, you'll need to generate Turnstile keys on your Cloudflare account, and input these on the admin dashboard.

Features

At present, only the Signup modal is protected, further options may be added in the future.

Installation

Install with composer:

composer require blomstra/turnstile:"*"

Updating

composer update blomstra/turnstile
php flarum migrate
php flarum cache:clear

Links

    Wow, I've been looking forward to this plugin for a long time, can't wait to try it out

    8 days later

    User39 we would gladly accept such a feature with a setting toggle. But this would either need to be commissioned or contributed as a PR to the original repository. Our availability is a bit limited right now.

      7 days later

      User39 Could you add the option to protect the "sign in" as well?

      Thanks for bringing this up. I’d also like to see this feature implemented if possible. 👍🏼

      luceos But this would either need to be commissioned or contributed as a PR to the original repository.

      If commissioning this seems out of reach for now, would enabling a bounty suffice for this proposal? 🙂

        Lurker If commissioning this seems out of reach for now, would enabling a bounty suffice for this proposal?

        Yes, that's possible. Feel free to create a Proposal, I can review and enable bounties for that once that's been published.

        24 days later

        0.1.1

        As requested in Proposals this feature release includes:

        ✨

        • Turnstile protection on Login and Forgot Password modals.
        • Admin settings to select which supported action will have turnstile protection enabled.
        • Dark mode support for visible turnstile captcha modes.

        This does not have any effect on logins made via providers (ie fof/oauth), this is for direct Flarum logins only at this stage

        Screenshots

        image

        image

        image

        image

        Updating

        composer update blomstra/turnstile
        php flarum cache:clear
          • [deleted]

          • Edited

          IanM
          I am not sure that I can express how much I and probably all other members do appreciate this.

            4 days later

            THIS IS FANTASTIC !!!! Thank you so much for this essential and very convenient extension !

            a month later

            Hope it gets updated to include it even for new posts/replies!!!! Would gladly contribute a few bucks if someone puts up a bounty for it! Turnstile reduces spam a looot

              KarlReza1 make sure there's no Proposal yet and create one. I'll gladly mark it available for bounties should the requested features are transparent.

              5 days later

              Just installed and am excited to see if this is better than captcha for stopping spam on my website 🤞

              While testing, I think I found a bug. If you type in a password that is less than 8 characters, you get the normal flarum warning that its not long enough. If this happens, the turnstyle despite saying you are good will always fail and then ask you to refresh the page.

                6 days later

                MikeJones I think the extension is designed in such a way that whenever submit is clicked, if there is any failure u gotta refresh to solve captcha successfully

                4 months later

                This is a great extension!

                However, I have a second Flarum install, where upon user registration I get
                "The turnstile field is required."

                The field is visible, and I've tried regenerating secret key.
                Also, have cleared cache.

                Any suggestions?

                Edit: if I disable FoF Real Time Login it works again.

                16 days later

                Hello,
                There is a new feature in the management area with version 1.8. Ability to add members from the admin panel.

                I have a site that uses Turnstile, Turnstile does not appear in the field that comes with the new feature. For this reason, we cannot create users from the administration panel. @IanM @luceos