in2code/invisiblerecaptcha

为 powermail 定制的 Google 无形 reCAPTCHA TYPO3 扩展

安装次数: 44,633

依赖项: 0

建议者: 0

安全: 0

星标: 4

关注者: 5

分支: 9

开放问题: 12

类型:typo3-cms-extension

7.0.2 2024-02-07 15:35 UTC

This package is auto-updated.

Last update: 2024-09-07 17:02:06 UTC


README

为 TYPO3 powermail 提供的 Google 无形 reCAPTCHA,用于防止垃圾邮件

Example form with a google invisble 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

变更日志