jbennecker/silverstripe-honeypotprotection
最新稳定版本:1.0.5
Composer 安装命令:
composer require jbennecker/silverstripe-honeypotprotection
包简介
README 文档
README
This module works by adding a normal text field which is visually hidden. The field is invalid when it's not empty. Bot will likely fill out the field, because they don't process css.
Requirements
- SilverStripe 5.x (for SilverStripe 4.x use 4.x Branch)
- SpamProtection Module
Install
Install via composer.
composer require jbennecker/silverstripe-honeypotprotection
Set the default spam protector in a .yml config file of your choice.
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: jbennecker\HoneypotProtection\HoneypotProtector
Usage
In custom forms add the field like this
use jbennecker\HoneypotProtection\HoneypotProtectorField;
....
$fields = new FieldList(
....
HoneypotProtectorField::create('Phone') // Change title accordingly
)
For userforms simply add a spamprotector-field.
统计信息
- 总下载量: 1.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-02