PHPackages                             cleantalk/laravel-antispam - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. cleantalk/laravel-antispam

ActiveLaravel-extension[Security](/categories/security)

cleantalk/laravel-antispam
==========================

Anti-spam laravel extension by CleanTalk with protection against spam bots and manual spam.

3.0.1(6mo ago)101.7k↑25%5GPL-3.0PHP

Since Aug 20Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/CleanTalk/laravel-antispam)[ Packagist](https://packagist.org/packages/cleantalk/laravel-antispam)[ Docs](https://cleantalk.org)[ RSS](/packages/cleantalk-laravel-antispam/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (10)Used By (0)

Laravel Spam Protection for Forms — reCAPTCHA Alternative
---------------------------------------------------------

[](#laravel-spam-protection-for-forms--recaptcha-alternative)

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.

How does CleanTalk stop spam?
-----------------------------

[](#how-does-cleantalk-stop-spam)

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:

- Detailed spam logs: Monitor and analyze all incoming submissions and their spam status.
- Personal blacklists and whitelists: Manually allow or block specific IP addresses, email addresses, or domains.
- Country filtering: Block form submissions from selected countries.
- Stop word filtering: Automatically block messages containing specific words or phrases.
- Language filtering: Automatically block or allow comments and submissions based on their language, helping to reduce irrelevant or unwanted content.
- Disposable/temporary email blocking: Prevent registrations and form submissions from disposable email addresses commonly used by spammers.
- Real-time Email Verification: Automatically verify email addresses in real time, ensuring that submissions and signups are made from legitimate and existing email accounts.

Requirements
------------

[](#requirements)

- CleanTalk account

How to use
----------

[](#how-to-use)

1. Require the `cleantalk/laravel-antispam` module
2. Register the `CleantalkServiceProvider` service provider into your app.php
3. Register the `cleantalk_antispam` middleware into your Kernel.php
4. Load the publishes by `php artisan vendor:publish` command
5. Edit `config/cleantalk.php` configuration file
6. Include JS into your root blade template (into head block) `@include('cleantalk::cleantalk')`
7. Add the middleware to your routes which requires the anti-spam protection (usually form hanled route)

Details
-------

[](#details)

1. Open the terminal in the root of your laravel application and run command to require anti-spam module:

```
composer require cleantalk/laravel-antispam`
```

2. Edit `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
```

3. Edit `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 -&gt;withMiddleware method

```
$middleware->alias([
    'cleantalk_antispam' => \CleanTalkLaravel\CleantalkValidate::class
]);
```

4. Open the terminal in the root of your laravel application and run command to generate config file and javascript asset:

```
php artisan vendor:publish
```

5. Edit newly added configuration file `config/cleantalk.php`, type your access key and change `enabled` key to `true`
6. Include cleantalk blade template to your root blade template into block:

```
@include('cleantalk::cleantalk')
```

7. So finally add the middleware to the required routes:

```
->middleware('cleantalk_antispam')
```

Now you can test the protection on the route contains `cleantalk_antispam` middleware, just use  test email for email field.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance69

Regular maintenance activity

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~135 days

Recently: every ~180 days

Total

7

Last Release

188d ago

Major Versions

2.0.4 → 3.0.02025-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/00cabd14ad0a24b6614de589e72519ff4433864097687217e62c2d80a10338ee?d=identicon)[CleanTalk](/maintainers/CleanTalk)

---

Top Contributors

[![svfcode](https://avatars.githubusercontent.com/u/74239490?v=4)](https://github.com/svfcode "svfcode (6 commits)")[![Glomberg](https://avatars.githubusercontent.com/u/8588152?v=4)](https://github.com/Glomberg "Glomberg (5 commits)")[![AntonV1211](https://avatars.githubusercontent.com/u/39616556?v=4)](https://github.com/AntonV1211 "AntonV1211 (4 commits)")[![alexandergull](https://avatars.githubusercontent.com/u/45482252?v=4)](https://github.com/alexandergull "alexandergull (1 commits)")[![ArtemAnoshin](https://avatars.githubusercontent.com/u/36857361?v=4)](https://github.com/ArtemAnoshin "ArtemAnoshin (1 commits)")[![venera81](https://avatars.githubusercontent.com/u/220177689?v=4)](https://github.com/venera81 "venera81 (1 commits)")

---

Tags

form-protectionlaravelrecaptchalaravelantispamcleantalk

### Embed Badge

![Health badge](/badges/cleantalk-laravel-antispam/health.svg)

```
[![Health](https://phpackages.com/badges/cleantalk-laravel-antispam/health.svg)](https://phpackages.com/packages/cleantalk-laravel-antispam)
```

###  Alternatives

[msurguy/honeypot

Honeypot spam prevention

4381.2M12](/packages/msurguy-honeypot)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[cleantalk/yii2-antispam

Anti-spam yii2 extension by CleanTalk with protection against spam bots and manual spam

1018.0k](/packages/cleantalk-yii2-antispam)[cleantalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

161.4k](/packages/cleantalk-yii-antispam)[solution-forest/filament-firewall

This is a middleware for whitelisting/blacklisting for Filament Admin

457.8k3](/packages/solution-forest-filament-firewall)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
