in2code / invisiblerecaptcha
为 powermail 定制的 Google 无形 reCAPTCHA TYPO3 扩展
7.0.2
2024-02-07 15:35 UTC
Requires
- ext-json: *
- in2code/powermail: ^12.0 | ^11.0 | dev-develop
Replaces
- typo3-ter/invisiblerecaptcha: 7.0.2
README
为 TYPO3 powermail 提供的 Google 无形 reCAPTCHA,用于防止垃圾邮件
安装
- 只需安装此扩展 - 例如
composer require in2code/invisiblerecaptcha
- 将您的域名注册到 www.google.com/recaptcha/
- 将 sitekey 和 secretkey 添加到 TypoScript 常量(见下面示例)
- 将您的提交按钮替换为新的字段类型 "Google 无形 reCAPTCHA"
- 享受乐趣
TypoScript 常量示例
plugin.tx_invisiblerecaptcha.sitekey = 6LdsBBUTAAAAAKMhI67inzeAvzBh5JdRRxlCwbTz
plugin.tx_invisiblerecaptcha.secretkey = 6LdsBBUTAAAAAKMhaaaainzeAvzBh5JdRRxlCwbyy
注意事项和最佳实践
确保在 powermail 中启用垃圾邮件保护(TypoScript 设置)
plugin.tx_powermail.settings.setup.spamshield._enable = 1
如果 powermail 识别垃圾邮件,请保持更新(TypoScript 设置)
# Get an email if spam was recognized
plugin.tx_powermail.settings.setup.spamshield.email = spamreceiver@yourdomain.org
# Write to a logfile when spam was recognized
plugin.tx_powermail.settings.setup.spamshield.logfileLocation = typo3temp/logs/powermailSpam.log