Features¶
Profiles¶
TBD.
Stealth Mode¶
Stealth Mode is used to mask the actual reason a form or field value was rejected.
The way Symfony’s form and validator mechanisms work together is counterintuitive for how we expect antispam measures to work, as their errors are really verbose, informative and user friendly. That means the default validation failures are, in a way, giving hints to the spammers on how to bypass the antispam measures. That sounds like a bad idea.
By default all profiles have stealth
enabled. This means all errors on fields and forms are replaced by a single
generic error on the form level, by default stating that ‘technical issues’ have prevented the form from being
processed. You can disable stealth
at the profile level to keep explicit errors at the violating fields.
When using the bundle components without the profile system, they follow the global stealth
setting at the root of
the configuration. It is disabled by default.
Passive Mode¶
Passive Mode makes the bundle components work without actually rejecting input.
When enabled all validators and other components still generate errors as usual, following stealth
rules where
enabled. At the end of the process all errors are dropped, not hampering successful validation.
All quarantine and logging are still present, all events are still dispatched. This allows you both to evaluate form filtering rules, and to implement custom behavior such as “fake pass”.
By default passive
is disabled both at the form and component level.
Quarantine¶
Whenever a form fails validation due to antispam measures, the form evaluation result is put in the Quarantine.
In the default configuration only file based quarantine is enabled at var/quarantine
in your project root. All
spam detections are logged as YAML arrays per day, making the date-stamped files both readable by humans and by code
should you want to run analysis.
Forms¶
TBD.
Validators¶
TBD.