CleanTalk Anti-Spam for Craft CMS.
This plugin requires Craft CMS 4.0.0 or later.
composer require cloudgrayau/cleantalk
CleanTalk is an anti-spam utility for protecting forms, user registrations and comments in Craft CMS.
A valid API key from the CleanTalk Service is required to use this plugin.
The CleanTalk plugin protects the following services from spam and includes an optional bot detector script that offers greater spam detection.
Protects user registrations from spam.
Protects form submissions from spam. The current form plugins/systems are automatically protected:
✓ Formie - https://plugins.craftcms.com/formie
✓ Freeform - https://plugins.craftcms.com/freeform
✓ Express Forms - https://plugins.craftcms.com/express-forms
✓ Contact Form - https://plugins.craftcms.com/contact-form
✓ Custom Forms - requires additional programming
Protects comment submissions from spam. The current comment plugins/systems are automatically protected:
✓ Comments - https://plugins.craftcms.com/comments
✓ Custom Comments - requires additional programming
Coming soon in a later release.
Any form or comment logic can be protected by CleanTalk via a custom plugin/module controller.
<?php
$params = array(
'name' => '<NAME>',
'email' => '<EMAIL>',
'phone' => '<PHONE>',
'message' => '<MESSAGE>'
);
if (\cloudgrayau\cleantalk\Cleantalk::checkForm($params)){ /* passed */
} else { /* failed */
$errormsg = \cloudgrayau\cleantalk\Cleantalk::$plugin->antiSpam->error;
}
?>
Brought to you by Cloud Gray Pty Ltd