Anti-spam laravel extension by CleanTalk with protection against spam bots and manual spam.
cleantalk/laravel-antispam is a Laravel package for anti-spam laravel extension by cleantalk with protection against spam bots and manual spam..
It currently has 9 GitHub stars and 2.269 downloads on Packagist (latest version 3.0.1).
Install it with composer require cleantalk/laravel-antispam.
Discover more Laravel packages by cleantalk
or browse all Laravel packages to compare alternatives.
Last updated
CleanTalk is a powerful Laravel anti-spam solution for contact, registration, and comment forms. It offers invisible spam protection — no CAPTCHA, no reCAPTCHA, no user friction.
Unlike traditional CAPTCHA tools, CleanTalk silently filters spam in the background using behavioral analysis and real-time checks. It’s a drop-in replacement for CAPTCHA, built for Laravel developers who care about UX and clean code.
If you find this project useful, please consider starring ⭐ it on GitHub — it helps us grow and support development!
CleanTalk anti-spam service provides automatic and invisible protection for websites by analyzing visitor behavior and evaluating form submissions.
When a visitor submits a form on your site, CleanTalk sends the data to the cloud for analysis on CleanTalk cloud servers. These servers analyze the submitted data using several spam checks and content analysis methods, providing a quick decision on whether to allow the submission or mark it as spam. This process includes analyzing a wide range of parameters.
Based on these comprehensive checks, CleanTalk creates and continuously updates blacklists containing email addresses, IP addresses and website domains commonly used by spambots.
CleanTalk has developed advanced algorithms to accurately distinguish between real visitors and spambots, effectively blocking almost 100% of spam attempts.
Additional anti-spam features:

cleantalk/laravel-antispam moduleCleantalkServiceProvider service provider into your app.phpcleantalk_antispam middleware into your Kernel.phpphp artisan vendor:publish commandconfig/cleantalk.php configuration file@include('cleantalk::cleantalk')composer require cleantalk/laravel-antispam`
config/app.php file, add new service provider to the providers array:\CleanTalkLaravel\CleantalkServiceProvider::class
For laravel 11 and 12 edit file bootstrap/providers.php, add to returned array
\CleanTalkLaravel\CleantalkServiceProvider::class
app/Http/Kernel.php file, add new middleware to the $routeMiddleware array:'cleantalk_antispam' => \CleanTalkLaravel\CleantalkValidate::class
For laravel 11 and 12 edit file bootstrap/app.php, add to ->withMiddleware method
$middleware->alias([
'cleantalk_antispam' => \CleanTalkLaravel\CleantalkValidate::class
]);
php artisan vendor:publish
config/cleantalk.php, type your access key and change enabled key to true@include('cleantalk::cleantalk')
->middleware('cleantalk_antispam')
Now you can test the protection on the route contains cleantalk_antispam middleware, just use [email protected] test email for email field.