Skip to content

NodeBB ​

Official CaptchaLa plugin for NodeBB 4. It adds CAPTCHA verification to the login and registration forms and to new topics and replies in the composer, with an Admin Control Panel page for the settings.

Every challenge is backed by a server-issued, single-use token, and each submission is checked on your server by a NodeBB hook, whatever the browser does.

What it covers ​

FormActionNotes
Loginlogin
Registrationregister
New topicforum_postPosted from the composer.
Replyforum_postPosted from the composer.

All four are on by default. When the visitor submits a protected form, the CaptchaLa challenge opens in a popup; the form is sent once it is solved. An invalid, reused or missing token is refused with a readable error.

Posts that go to NodeBB's post queue are checked when they are queued; approving them later needs no new challenge.

Requirements ​

  • NodeBB 4.x
  • The Harmony theme, or any theme that renders loginFormEntry / regFormEntry, and the default composer
  • A CaptchaLa account — get your App Key + App Secret at dash.captcha.la

Install ​

From your NodeBB install root:

bash
npm install nodebb-plugin-captchala
./nodebb activate nodebb-plugin-captchala
./nodebb build
./nodebb restart

Configure ​

Open ACP → Plugins → CaptchaLa:

  1. Paste your App Key and App Secret.
  2. Optionally set a Language.
  3. Choose the forms under Protect these forms.
  4. Click Save changes.

Until an App Key and App Secret are saved, the plugin does nothing.

SettingDefaultDescription
App Key—Public key from the CaptchaLa dashboard. Required.
App Secret—Server secret, used to issue and validate tokens. Required; never shown to visitors.
LanguageemptyA language tag such as ja or pt-BR. Leave empty to follow the visitor's browser.
LoginonProtect the login form.
RegistrationonProtect the registration form.
New topics and repliesonProtect new topics and replies.
Skip CAPTCHA for administratorsonAdministrators post without a challenge.

Screenshots ​

CaptchaLa settings in the NodeBB Admin Control Panel: credentials, language and protected forms

Troubleshooting ​

  • No challenge appears. Check that both keys are saved and the form is switched on under Protect these forms. After installing or updating, run ./nodebb build and restart.
  • Every submission is refused. Make sure the App Key and App Secret belong to the same app, and that your forum's domain is allowed for that app in the dashboard.
  • Trying it out. The public test keys let you check the full flow without an account.

MIT-licensed examples · CaptchaLa is operated independently