powermailrecaptcha
Google recaptcha for TYPO3 powermail to prevent spam
Dependencies
- powermail >= 5.0 and < 7.0
- TYPO3 >= 8.7 and < 10.0
- vhs >= 5.0
- php >= 7.0
Installation
- Just install this extension via composer
composer require in2code/powermailrecaptcha
(or oldschool) - Clear caches
- Register your domain to www.google.com/recaptcha/
- Add sitekey and secretkey to TypoScript Constants (see example below)
- Add a field of Type Google Recaptcha to your powermail form
- Have fun
Example for TypoScript Constants:
plugin.tx_powermailrecaptcha.sitekey = 6LdsBBUTAAAAAKMhI67inzeAvzBh5JdRRxlCwbTz
plugin.tx_powermailrecaptcha.secretkey = 6LdsBBUTAAAAAKMhaaaainzeAvzBh5JdRRxlCwbyy
Notes and best practice
Be sure to have spamshield enabled in powermail (TypoScript setup):
plugin.tx_powermail.settings.setup.spamshield._enable = 1
Keep up to date if powermail recognize spam (TypoScript setup):
# Get an email if spam was recognized
plugin.tx_powermail.settings.setup.spamshield.email = spamreceiver@yourdomain.de
# Write to a logfile when spam was recognized
plugin.tx_powermail.settings.setup.spamshield.logfileLocation = typo3temp/logs/powermailSpam.log
Changelog
Version | Date | Description |
---|---|---|
4.1.0 | 2019-01-25 | Client side validation |
4.0.0 | 2018-11-21 | Update dependencies for powermail 7.x |
3.0.0 | 2018-07-13 | Update dependencies for powermail 6.x |
2.0.0 | 2018-02-14 | Update dependencies for powermail 5.x |
1.1.0 | 2017-11-04 | Update dependencies for powermail 4.x |
1.0.1 | 2016-08-06 | Activate check only if form has a recaptcha field and not every time, some more stuff in the manual |
1.0.0 | 2016-08-06 | Initial upload - have fun |