in2code / powermailrecaptcha
Google recaptcha TYPO3 extension for powermail
Installs: 136 731
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 13
Open Issues: 6
Type:typo3-cms-extension
Requires
- ext-json: *
- in2code/powermail: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
Requires (Dev)
- ext-json: *
- helhum/typo3-console: ^8
- in2code/powermail: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
- typo3/cms-extbase: ^12
- typo3/cms-extensionmanager: ^12
- typo3/cms-felogin: ^12
- typo3/cms-filelist: ^12
- typo3/cms-fluid-styled-content: ^12
- typo3/cms-frontend: ^12
- typo3/cms-info: ^12
- typo3/cms-install: ^12
- typo3/cms-lowlevel: ^12
- typo3/cms-recordlist: ^12
- typo3/cms-rte-ckeditor: ^12
- typo3/cms-scheduler: ^12
- typo3/cms-setup: ^12
- typo3/cms-t3editor: ^12
- typo3/cms-tstemplate: ^12
Replaces
- typo3-ter/powermailrecaptcha: 5.2.2
README
Google recaptcha for TYPO3 powermail to prevent spam
Dependencies
- powermail 8.x, 9.x, 10.x, 11.x, 12.x
- TYPO3 Version 10, 11 & 12
- Google recaptcha V2 (https://developers.google.com/recaptcha/docs/v2)
Installation
- Just install this extension via composer
composer require in2code/powermailrecaptcha
- Register your domain to www.google.com/recaptcha/ (registration direct link: https://g.co/recaptcha/v3 - reCAPTCHA, Version 2)
- Add sitekey and secretkey to TypoScript Constants (see example below)
- Ensure that spamshield is enabled (see 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
Common pitfalls and best practice
spamshield must be 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
Development
Environment is included. Set it up via:
- DDEV start
- Composer install
- ddev import-db .project/db.sql.gz
Made for TYPO3 12 / powermail 12