xddesigners/silverstripe-honeypotfield
最新稳定版本:6.0.3
Composer 安装命令:
composer require xddesigners/silverstripe-honeypotfield
包简介
Adds a honeypot in addition to the nocapcha field
README 文档
README
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/silverstripe-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
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-09-12