PHPackages                             wodcz/nette-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. [Security](/categories/security)
4. /
5. wodcz/nette-honeypot

ActiveLibrary[Security](/categories/security)

wodcz/nette-honeypot
====================

Honeypot extension for Nette Forms

3.0.2(1y ago)936.5k↓40.6%50BSDPHPPHP &gt;= 7.1

Since Mar 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wodCZ/NetteHoneypot)[ Packagist](https://packagist.org/packages/wodcz/nette-honeypot)[ RSS](/packages/wodcz-nette-honeypot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (8)Used By (0)

Nette Honeypot Extension
========================

[](#nette-honeypot-extension)

Adds support for honeypot input in Nette Forms.

What it does
------------

[](#what-it-does)

[Article about honeypot input](http://haacked.com/archive/2007/09/11/honeypot-captcha.aspx/)

TLDR; It creates form input, then hides it using CSS or JS. Spam bots usually fill all fields (especially those with yummy names, like 'email' or 'web'). Human will not fill hidden field, so this is a way to detect bot, instead of forcing user to solve captcha.

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

[](#installation)

Best way to install this is using composer:

```
composer require wodcz/nette-honeypot

```

Then register extension:

```
extensions:
    honeypot: wodCZ\NetteHoneypot\HoneypotExtension

```

Usage
-----

[](#usage)

```
$form->addHoneypot($name, $caption, $errorMessage, $mode);

```

`$name` should be something yummy for robot, like email.

In `$caption` you should write something for user, which for some reason has not this field hidden.

In `$message` you may change default error message.

And `$mode` should be one of wodCZ\\NetteHoneypot\\Honeypot::`MODE_CSS` or `MODE_JS`.

You can also specify your own error callback:

```
$honeypot = $form->addHoneypot('email');
$honeypot->onError[] = function($control){ .... };

```

Configuring
-----------

[](#configuring)

```
honeypot:
	inline: true/false # if true, extension will append css/js (according to mode) right after input. Otherwise you have to link css/js on your own.

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance43

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~603 days

Recently: every ~447 days

Total

7

Last Release

449d ago

Major Versions

1.0.1 → 2.0.02020-04-03

2.1.0 → 3.0.02021-01-26

### Community

Maintainers

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

---

Top Contributors

[![wodCZ](https://avatars.githubusercontent.com/u/1174421?v=4)](https://github.com/wodCZ "wodCZ (8 commits)")[![tomas-kulhanek](https://avatars.githubusercontent.com/u/7447745?v=4)](https://github.com/tomas-kulhanek "tomas-kulhanek (2 commits)")[![mateszemek](https://avatars.githubusercontent.com/u/36263107?v=4)](https://github.com/mateszemek "mateszemek (1 commits)")

---

Tags

nettespamFormsHoneypotantispam

### Embed Badge

![Health badge](/badges/wodcz-nette-honeypot/health.svg)

```
[![Health](https://phpackages.com/badges/wodcz-nette-honeypot/health.svg)](https://phpackages.com/packages/wodcz-nette-honeypot)
```

###  Alternatives

[msurguy/honeypot

Honeypot spam prevention

4381.2M12](/packages/msurguy-honeypot)[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[omines/antispam-bundle

The Swiss Army Knife for protecting your Symfony forms from all kinds of spam

4459.2k](/packages/omines-antispam-bundle)

PHPackages © 2026

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