PHPackages                             lingo/silverstripe\_honeypotform - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lingo/silverstripe\_honeypotform

ActiveSilverstripe-module[Validation &amp; Sanitization](/categories/validation)

lingo/silverstripe\_honeypotform
================================

A Form which provides a Honeypot field to trick bots, and reduce spam.

2161PHP

Since May 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lingo/silverstripe_honeypotform)[ Packagist](https://packagist.org/packages/lingo/silverstripe_honeypotform)[ RSS](/packages/lingo-silverstripe-honeypotform/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Honeypot Form
=============

[](#honeypot-form)

A form which provides a honeypot field and methods to check it. This field is an input field in the form that human users are instructed not to fill out. In any case, the field is normally hidden from the users. Spambots will typically fill out all fields, and so we can check if this field has been filled when it shouldn't have.

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

[](#installation)

Install this in your SilverStripe checkout wherever you like. Or use Composer..

Usage
-----

[](#usage)

Wherever you'd normally use a `Form`, you may now use a `HoneypotForm`. You can inherit from it or use it in-place.

In your controller's `init` method, you'll probably want to call the following

```
        HoneypotForm::render_css();
```

which will add CSS to the page in order to hide the honeypot field from the user.

Validation
----------

[](#validation)

To check if the 'fly' has fallen into the honeypot, ie if a spambot is using the form, use the following in your form processing function.

```
    public function myFormSubmission($data, $form) {
        if ($form->validateHoneypot($data)) {
            // User is either a bot, or very bad at following instructions!
            // ...
        } else {
            // The form looks okay
            /// ...
        }
        ...
```

Bot tricks
----------

[](#bot-tricks)

To try to make it harder for the bots, the field name and class changes all the time, so they can't simply avoid fields of class 'honeypot' or something like this.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/219531?v=4)[Lucas H](/maintainers/lingo)[@lingo](https://github.com/lingo)

---

Top Contributors

[![lingo](https://avatars.githubusercontent.com/u/219531?v=4)](https://github.com/lingo "lingo (14 commits)")

---

Tags

honeypothoneypot-fieldphpsilverstripe

### Embed Badge

![Health badge](/badges/lingo-silverstripe-honeypotform/health.svg)

```
[![Health](https://phpackages.com/badges/lingo-silverstripe-honeypotform/health.svg)](https://phpackages.com/packages/lingo-silverstripe-honeypotform)
```

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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