PHPackages                             studiobonito/silverstripe-spamprotection-honeypot - 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. studiobonito/silverstripe-spamprotection-honeypot

ActiveSilverstripe-module

studiobonito/silverstripe-spamprotection-honeypot
=================================================

Provide Honeypot spam protection for SilverStripe CMS.

1.2.0(9y ago)720.2k17[3 issues](https://github.com/studiobonito/silverstripe-spamprotection-honeypot/issues)[5 PRs](https://github.com/studiobonito/silverstripe-spamprotection-honeypot/pulls)3BSD-2-ClausePHPPHP &gt;=5.3.0

Since Sep 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/studiobonito/silverstripe-spamprotection-honeypot)[ Packagist](https://packagist.org/packages/studiobonito/silverstripe-spamprotection-honeypot)[ Docs](https://github.com/studiobonito/silverstripe-spamprotection-honeypot)[ RSS](/packages/studiobonito-silverstripe-spamprotection-honeypot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (8)Used By (3)

SpamProtection Honeypot Module
==============================

[](#spamprotection-honeypot-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/379ea33235167101547b4499535a24670541e7c3ead60ac38520718a5631cc34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73747564696f626f6e69746f2f73696c7665727374726970652d7370616d70726f74656374696f6e2d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-spamprotection-honeypot)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7fedb853db5f8fbd1e1c4cd5e1ba639980282fb52f29dcbf3d4a6b27e62eb497/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73747564696f626f6e69746f2f73696c7665727374726970652d7370616d70726f74656374696f6e2d686f6e6579706f742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/studiobonito/silverstripe-spamprotection-honeypot)[![Coverage Status](https://camo.githubusercontent.com/adf76a183e2036ff79b26a4da99471b477bea62b1b47c61d631d40c0d8d11d5b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73747564696f626f6e69746f2f73696c7665727374726970652d7370616d70726f74656374696f6e2d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/studiobonito/silverstripe-spamprotection-honeypot/code-structure)[![Quality Score](https://camo.githubusercontent.com/c41149a4f070c6e26fc018707c8dc931fb411f4187bedd48cb8c762d7779b5a3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73747564696f626f6e69746f2f73696c7665727374726970652d7370616d70726f74656374696f6e2d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/studiobonito/silverstripe-spamprotection-honeypot)[![Total Downloads](https://camo.githubusercontent.com/551466ce18549943b7d5613b73a6c1226e65940157816558a595d11adc9afc7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73747564696f626f6e69746f2f73696c7665727374726970652d7370616d70726f74656374696f6e2d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-spamprotection-honeypot)

Overview
--------

[](#overview)

Provide Honeypot spam protection for SilverStripe CMS. Create a form field hidden from users that invalidates submission if it contains any data. Also invalidate submissions that respond to quickly.

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

[](#requirements)

- SilverStripe 3.1.0 and newer or 3.2 and newer.
- SilverStripe [SpamProtection](https://github.com/silverstripe/silverstripe-spamprotection) 1.2 or newer.

Install
-------

[](#install)

### Via Composer

[](#via-composer)

Run the following to add this module as a requirement and install it via composer.

```
$ composer require studiobonito/silverstripe-spamprotection-honeypot
```

### Manually

[](#manually)

Copy the 'silverstripe-spamprotection-honeypot' folder to the root of your SilverStripe installation.

Usage
-----

[](#usage)

Create a configuration file `spamprotection.yml` in `mysite/_config` with the following configuration.

```
---
name: spamprotection
---
FormSpamProtectionExtension:
  default_spam_protector: '\StudioBonito\SilverStripe\SpamProtection\Honeypot\SpamProtector\HoneypotSpamProtector'
```

Then enable spam protection on your form by calling `Form::enableSpamProtection()`.

```
public function ExampleForm()
{
    $form = new ExampleForm($this, 'Example');

    $form->enableSpamProtection();

    return $form;
}
```

You can change the amount time that is checked to see if the response is made too quickly with the following configuration.

```
StudioBonito\SilverStripe\SpamProtection\Honeypot\FormField\HoneypotField:
  time_limit: 1
```

This example changes the time to 1 second. The default is set to 5 seconds.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tom Densham](https://github.com/nedmas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD-2-Clause License. Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~194 days

Recently: every ~242 days

Total

6

Last Release

3291d ago

### Community

Maintainers

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

---

Top Contributors

[![andreassp](https://avatars.githubusercontent.com/u/2562181?v=4)](https://github.com/andreassp "andreassp (1 commits)")[![nedmas](https://avatars.githubusercontent.com/u/842280?v=4)](https://github.com/nedmas "nedmas (1 commits)")

---

Tags

silverstripespamformHoneypotprotectionsilverstripe-spamprotection-honeypotstudiobonito

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/studiobonito-silverstripe-spamprotection-honeypot/health.svg)

```
[![Health](https://phpackages.com/badges/studiobonito-silverstripe-spamprotection-honeypot/health.svg)](https://phpackages.com/packages/studiobonito-silverstripe-spamprotection-honeypot)
```

###  Alternatives

[nucleos/antispam-bundle

This bundle provides some basic features to reduce spam in symfony forms.

52105.1k](/packages/nucleos-antispam-bundle)[exadium/silverstripe-invisible-spam-protection

Very simple anti spam protection based on principle that automated spammers enter bogus information in all form fields. Field is added to form that is hidden using CSS hiding it from human users. Form is only allowed to be submitted if field is empty. Includes an EditableInvisibleSpamField to integrate with the UserForms module.

112.1k](/packages/exadium-silverstripe-invisible-spam-protection)[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)

PHPackages © 2026

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