Download the PHP package moosylvania/silverstripe-registrationguard without Composer
On this page you can find all versions of the php package moosylvania/silverstripe-registrationguard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moosylvania/silverstripe-registrationguard
More information about moosylvania/silverstripe-registrationguard
Files in moosylvania/silverstripe-registrationguard
Package silverstripe-registrationguard
Short Description Configurable anti-spam guard for Silverstripe registration and entry forms, with a blocked-submission log and CMS admin.
License MIT
Informations about the package silverstripe-registrationguard
Silverstripe Registration Guard
Anti-spam for Silverstripe forms that create records — registrations, sweepstakes entries, anything a bot would like to submit ten thousand times.
The guard runs a signed dwell-time check, its own honeypot field, a per-IP rate limit, configurable hard blocks, and a scored "this text looks machine generated" heuristic. Everything it blocks is written to a log with the reasons, so you can tune the thresholds against your own traffic rather than guessing. Users get one generic error and are told nothing about which rule fired.
One install serves many forms: each form names a source, and a source supplies the target class, the field names and any threshold overrides.
Requirements
| Module | Silverstripe | PHP |
|---|---|---|
^2 (branch main) |
6 | 8.3+ |
^1 (branch 1) |
5 | 8.1+ |
Then run dev/build?flush=1.
Quick start
Define a source for the form you want to protect:
Add the guard fields to the form, and run the check in the action:
That is the whole integration. There is also an opt-in mode that wires itself in via YAML with no PHP changes at all — see the docs below.
To make the gmail-alias duplicate check work, apply the canonical email extension to your target class:
Documentation
- Registration guard and configuration — sources, every check, the scoring model, and the full config reference
- Log and admin — what gets recorded, what each reason code means, and how to tune thresholds from real traffic
- Email canonical extension — collapsing gmail dot and plus aliases
- Tasks — scoring records that predate the guard, and backfilling canonical emails
License
MIT. See LICENSE.
All versions of silverstripe-registrationguard with dependencies
silverstripe/framework Version ^6
silverstripe/admin Version ^3
silverstripe/vendor-plugin Version ^3