Helper for a simple mechanism to dissuade and annoy entry-level spammers. For rigorous protection, use a CAPTCHA. @see Captcha
This is the code documentation for the SproutCMS project
Search documentation |
class SpamHelper for a simple mechanism to dissuade and annoy entry-level spammers. For rigorous protection, use a CAPTCHA. @see Captcha
Functions
public censorstring Spam::censor ( string $text ); Checks text for bad words, like 'tax' and 'capsicum' public checkboolean Spam::check ( ); Checks that the spam field was not submitted with the form public checkOrDievoid Spam::checkOrDie ( );
Checks that the spam field was not submitted with the form
If the check fails the user will be redirected to the URL base ('/') along
with a notification. Normal users will never encounter this scenario.public detectarray Spam::detect ( string $text ); Looks at a block of text to see if it looks like spam. public gluestring Spam::glue ( ); Generates a div containing an input which should never be filled in, in order to trap spam bots. To be used with Spam::check |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|