elmnsk/yii2-honeypot
Composer 安装命令:
composer require elmnsk/yii2-honeypot
包简介
Protects forms from spam using 'honeypot' method
关键字:
README 文档
README
Protects the forms from spam using "honeypot" method
Installation
The preferred way to install this extension is through composer.
Use composer
composer require --prefer-dist elmnsk/yii2-honeypot "*"
or add
"elmnsk/yii2-honeypot": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
//model property public $honeypotTime; //in model rules ['honeypotTime',\elmnsk\yii2honeypot\HoneypotTimeValidator::class,'time'=>10];
<?=$form->field($model,'honeypotTime') ->widget(\elmnsk\yii2honeypot\HoneypotTimeWidget::class)->label(false);?>
'time' - this is the time in seconds, less than which the form submission will be detected as spam
统计信息
- 总下载量: 2.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-25