suilven / silverstripe-common-forms-spam-protection
为常见SilverStripe表单提供一站式的垃圾邮件保护。
1.0.0
2019-05-31 20:19 UTC
Requires
- php: >=5.6.0
- silverstripe/framework: ^4@dev
This package is auto-updated.
Last update: 2024-09-29 05:28:36 UTC
README
当前,此功能作为一次性解决方案,为以下2个模块启用垃圾邮件保护。
- silverstripe/comments - 添加新评论,回复评论
- symbiote/silverstripe-memberprofiles - 会员注册
内容
安装
模块
composer require suilven/silverstripe-common-forms-spam-protection
启用默认垃圾邮件保护
添加一个文件,例如 app/_config/spamprotection.yml,并添加以下内容
---
name: mysitespamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: '\Symbiote\SilverStripe\SpamProtection\Honeypot\SpamProtector\HoneypotSpamProtector'
将垃圾邮件保护器更改为您的偏好。