PHPackages                             cotiga/spam-guard - 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. cotiga/spam-guard

Abandoned → [cotiga/spam-guard-lr10](/?search=cotiga%2Fspam-guard-lr10)Library[Security](/categories/security)

cotiga/spam-guard
=================

Antispam et gestion des erreurs HTTP pour applications Laravel 10/11/12 (admin STRAdmin/Voyager). Ligne legacy — pour le socle Core/Starter (Filament), voir cotiga/spam-guard-cs.

v1.0.5(1mo ago)023↓25%MITPHPPHP ^8.1

Since May 20Pushed 1mo agoCompare

[ Source](https://github.com/cotiga/spam-guard-lr10)[ Packagist](https://packagist.org/packages/cotiga/spam-guard)[ RSS](/packages/cotiga-spam-guard/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

cotiga/spam-guard-lr10
======================

[](#cotigaspam-guard-lr10)

Package Laravel — antispam formulaires et gestion des erreurs HTTP.

> **Ligne legacy** (Laravel 10/11/12, admin STRAdmin / fork Voyager). Pour le socle CotiCMS Core/Starter (Laravel 13 + Filament v5), utiliser [`cotiga/spam-guard-cs`](https://github.com/cotiga/spam-guard-cs).

- Rate limiting par IP
- Filtrage email : TLD, domaine, patterns suspects
- Détection nom avec chiffres, nom charabia, message générique de bot, message charabia
- Validation téléphone (format date, lettres, longueur hors norme)
- Géoblocage (via `stevebauman/location`)
- Log et ban automatique des IPs abusives
- Email d'alerte sur erreurs récurrentes

Installation
------------

[](#installation)

```
composer require cotiga/spam-guard-lr10
php artisan migrate
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --tag=spam-guard-config
```

Le fichier `config/spam-guard.php` permet de personnaliser tous les seuils, listes de pays, TLD, patterns, etc.

Handler d'exceptions
--------------------

[](#handler-dexceptions)

Dans `app/Exceptions/Handler.php`, étendre la classe du package :

```
