@arnaudw38/nodebb-plugin-spam-be-gone
v1.0.12
Published
Anti-spam plugin for NodeBB 4.x using Akismet, StopForumSpam, ProjectHoneyPot, and Cloudflare Turnstile (Turnstile-only fork)
Downloads
1,162
Maintainers
Readme
nodebb-plugin-spam-be-gone
Anti-spam plugin for NodeBB 4.x with Cloudflare Turnstile (Turnstile-only fork).
This fork removes all reCAPTCHA and hCaptcha support and uses Cloudflare Turnstile only for human verification.
Highlights
- ✅ NodeBB 4.x compatible
- ✅ Cloudflare Turnstile only (no reCAPTCHA / no hCaptcha)
- ✅ Turnstile challenge on registration
- ✅ Optional Turnstile challenge on login
- ✅ Akismet checks for posts/topics
- ✅ StopForumSpam reporting + queue tooling
- ✅ Project Honeypot (http:BL) checks during registration
Compatibility
| Component | Version |
|---|---|
| NodeBB | ^4.0.0 |
| nbbpm compatibility | ^4.0.0 |
Installation (npm)
From your NodeBB root directory:
npm install @arnaudw38/nodebb-plugin-spam-be-gone
./nodebb build
./nodebb restartThen enable the plugin in:
Admin → Extend → Plugins (or your NodeBB plugin management page)
Configuration
Open:
Admin → Plugins → Spam Be Gone
Cloudflare Turnstile setup
- Create a Turnstile widget in your Cloudflare dashboard.
- Copy your Site Key and Secret Key.
- In the plugin settings, enable Turnstile and paste both keys.
- Save settings.
- Rebuild & restart NodeBB if needed.
Turnstile options supported (plugin settings)
turnstileEnabledturnstileSiteKeyturnstileSecretKeyloginTurnstileEnabledturnstileThemeturnstileSizeturnstileAppearance
What changed in this fork
Removed
- ❌ Google reCAPTCHA integration
- ❌ hCaptcha integration
- ❌ Legacy captcha UI/assets/styles related to those providers
Added / refactored
- ✅ Cloudflare Turnstile verification (server-side + client-side)
- ✅ Cleaner settings handling / flag parsing
- ✅ More robust client injection (idempotent script/widget rendering)
- ✅ Cleanup for modern NodeBB 4.x plugin usage
Migration notes (from reCAPTCHA / hCaptcha)
If you were previously using reCAPTCHA or hCaptcha in this plugin:
- Remove old keys from the plugin settings (if still present in your DB/config).
- Create new Cloudflare Turnstile keys.
- Configure Turnstile settings in the plugin admin page.
- Test registration and (optionally) login challenge flows.
Old captcha providers are no longer used by this fork.
npm publishing checklist (fork maintainers)
Before publishing your fork, update these fields in package.json:
name(your npm package name / scope)versionrepositorybugshomepage
The current values are placeholders (your-scope / your-org) and should be replaced with your actual npm scope and GitHub repository.
Troubleshooting
Turnstile widget does not appear
- Check that
turnstileEnabledis enabled. - Confirm your Site Key is valid.
- Ensure your forum domain matches the domain configured in Cloudflare Turnstile.
- Rebuild NodeBB assets (
./nodebb build) and restart.
Verification fails on submit
- Confirm your Secret Key is correct.
- Check server connectivity to Cloudflare Turnstile verification endpoint.
- Inspect NodeBB logs for plugin validation errors.
Login challenge not showing
- Confirm
loginTurnstileEnabledis enabled. - Verify your active theme/login template is using the plugin hook output correctly.
Development notes
This package is intentionally kept minimal for easier deployment:
- No ESLint/tooling requirements for runtime
- No
package-lock.jsonincluded in this fork package - Turnstile-only code path
License
MIT
Credits
- Original plugin authors/maintainers of
nodebb-plugin-spam-be-gone - Refactor/fork updates for NodeBB 4.x + Cloudflare Turnstile
