Skip to content

Adds a honeypot to use stand alone or in addition to the NoCapcha field

License

Notifications You must be signed in to change notification settings

xddesigners/silverstripe-honeypotfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Honeypot field

Add a Honeypot spam protector to use by itself or in combination with a Nocaptcha. The honeypot is inspired by spatie/laravel-honeypot as it uses an honeypot field that is invalidated when filled and validates an field that has a timestamp. The timestamp is checked to make sure the form wasn't submitted crazy fast.

Installation

composer require xddesigners/honeypotfield

Usage

Configure the honeypot spam protector by itself or with the nocapcha protector.

# configure if you want to use the honeypot by itself
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: XD\Honeypot\Protectors\HoneypotProtector

# configure if you want to use both capcha and honeypot protection
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: XD\Honeypot\Protectors\NocaptchaProtector

Configure the dis-allowed time in seconds to submit a form.

XD\Honeypot\Forms\HoneypotField:
  submitted_in_seconds: 5 

About

Adds a honeypot to use stand alone or in addition to the NoCapcha field

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published