prm / security
Add reCAPTCHA v2, hCaptcha, or Cloudflare Turnstile to Flarum login and registration.
Package info
github.com/smmpanelscripts1/prm-security
Type:flarum-extension
pkg:composer/prm/security
0.1.0
2026-09-18 16:34 UTC
Requires
- flarum/core: ^1.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
CAPTCHA on Flarum login and registration. Pick one provider in the admin settings: Google reCAPTCHA v2, hCaptcha, or Cloudflare Turnstile.
Compatible with Flarum 1.8.
Screenshots
Login:
Registration:
Admin:
What it does
- One provider at a time, chosen from Admin → PRM Security
- Optional toggles: require on login, require on registration
- Widget on the login and sign-up modals
- Token is verified on the server; the secret key never goes to the browser
- Off by default until you choose a provider and paste keys
OAuth / registration-token sign-up is not challenged.
Install
composer config repositories.prm-security vcs https://github.com/smmpanelscripts1/prm-security composer require prm/security:dev-main
Enable PRM Security, then:
php flarum cache:clear
How to use
- Admin → Extensions → PRM Security
- Choose a provider
- Paste site key and secret key
- Turn Require on login / Require on registration on or off
- Save, then log out to see the widget
Production keys:
- Google reCAPTCHA v2 (checkbox, not v3)
- hCaptcha
- Cloudflare Turnstile
For local localhost testing only, each vendor publishes dummy keys in their docs. Do not use those on a live forum.
License
MIT


