2017 © Pedro Peláez
 

library nette-honeypot

Honeypot extension for Nette Forms

image

wodcz/nette-honeypot

Honeypot extension for Nette Forms

  • Tuesday, October 18, 2016
  • by wodCZ
  • Repository
  • 2 Watchers
  • 7 Stars
  • 2,523 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Nette Honeypot Extension

Adds support for honeypot input in Nette Forms., (*1)

What it does

Article about honeypot input, (*2)

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., (*3)

Installation

Best way to install this is using composer:, (*4)

composer require wodcz/nette-honeypot

Then register extension:, (*5)

extensions:
    honeypot: wodCZ\NetteHoneypot\HoneypotExtension

Usage

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

$name should be something yummy for robot, like email., (*6)

In $caption you should write something for user, which for some reason has not this field hidden., (*7)

In $message you may change default error message., (*8)

And $mode should be one of wodCZ\NetteHoneypot\Honeypot::MODE_CSS or MODE_JS., (*9)

You can also specify your own error callback:, (*10)

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

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.

The Versions

18/10 2016

dev-master

9999999-dev

Honeypot extension for Nette Forms

  Sources   Download

New BSD

The Requires

 

forms spam nette antispam honeypot

18/10 2016

1.0.1

1.0.1.0

Honeypot extension for Nette Forms

  Sources   Download

New BSD

The Requires

 

forms spam nette antispam honeypot

27/03 2015

1.0.0

1.0.0.0

Honeypot extension for Nette Forms

  Sources   Download

New BSD

The Requires

 

forms spam nette antispam honeypot