werkbot / werkbot-spam-protection
Werkbot垃圾邮件保护字段
2.0.0
2024-04-19 12:43 UTC
Requires
- php: ^8.1
- silverstripe/cms: ^5
- silverstripe/framework: ^5
- silverstripe/spamprotection: ^4
Requires (Dev)
- phpunit/phpunit: ^9.5
README
使用Honeypot和Timer字段标记机器人提交的silverstripe垃圾邮件模块
安装
composer require werkbot/werkbot-spam-protection
要求
设置
要将此作为默认垃圾邮件保护设置,请将以下内容添加到您的mysite/_config/spamprotection.yml文件中
---
name: mycustomspamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: Werkbot\SpamProtection\HoneypotProtector
您可以选择使用以下条目在文件中设置Timer字段的持续时间,其中x是秒数
time_not_bot: x
如果您计划修改sass文件,可以将此文件和components文件夹复制到您的sass目录中,并相应更新。