PHPackages                             pecotamic/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. pecotamic/antispam

ActiveStatamic-addon

pecotamic/antispam
==================

Silent server-side timing and content based spam protection for Statamic forms

v0.1.2(today)03↑2900%MITPHPPHP ^8.2

Since Jul 28Pushed todayCompare

[ Source](https://github.com/pecotamic/antispam)[ Packagist](https://packagist.org/packages/pecotamic/antispam)[ RSS](/packages/pecotamic-antispam/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Pecotamic Antispam
==================

[](#pecotamic-antispam)

[![Statamic 5](https://camo.githubusercontent.com/735aa648b49fd4a97d6436292bff62c713d1c701136d7018c1da3509450f0f1e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302b2d3236424244443f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/735aa648b49fd4a97d6436292bff62c713d1c701136d7018c1da3509450f0f1e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d352e302b2d3236424244443f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Statamic 6](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)

Silent server-side spam protection for Statamic forms.

The addon places an encrypted timing cookie only on pages containing a Statamic form action under /!/forms/. Submissions without a valid cookie, sent too quickly, or matching configured content patterns are silently discarded through Statamic's FormSubmitted event. Bots receive the regular success response.

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

[](#installation)

```
composer require pecotamic/antispam
php artisan vendor:publish --tag=pecotamic-antispam-config
```

Configure protected form handles, timing limits, and optional regular expressions in config/pecotamic/antispam.php. Use \* as the form handle to protect every Statamic form.

Static caching
--------------

[](#static-caching)

The timing cookie is issued by middleware while the page is rendered. With Statamic's **full measure** static caching, pages are served straight from disk without booting PHP, so the middleware never runs and the cookie is never set — as a result **every** submission is rejected as if it had no cookie.

If you use full static caching, exclude the pages containing protected forms from the cache (`statamic.static_caching.exclude`) so the cookie can be set. The **half measure** strategy still executes PHP on each request and works without changes.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~0 days

Total

3

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc0f3bb11948077e1d221b6999d4f522b63fa249af847ff58800c2a618dbd0f9?d=identicon)[pecotamic](/maintainers/pecotamic)

---

Top Contributors

[![werner-freytag](https://avatars.githubusercontent.com/u/3309376?v=4)](https://github.com/werner-freytag "werner-freytag (6 commits)")

---

Tags

spamstatamic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k8](/packages/statamic-rad-pack-runway)[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23111.5k15](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

15133.0k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

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