jbennecker/silverstripe-honeypotprotection 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-02