eekes / sulu-spam-protection-bundle
Invisible reCAPTCHA v3 spam protection for Sulu and Symfony website forms, with a log of what it blocked
Package info
github.com/eekes/sulu-spam-protection-bundle
Type:symfony-bundle
pkg:composer/eekes/sulu-spam-protection-bundle
Requires
- php: ^8.3
- doctrine/dbal: ^3.8 || ^4.0
- doctrine/doctrine-bundle: ^2.13
- doctrine/orm: ^2.17 || ^3.3
- karser/karser-recaptcha3-bundle: ^0.3.0
- psr/log: ^3.0
- sulu/sulu: ^3.0
- symfony/config: ^7.2
- symfony/console: ^7.2
- symfony/dependency-injection: ^7.2
- symfony/event-dispatcher: ^7.2
- symfony/form: ^7.2
- symfony/framework-bundle: ^7.2
- symfony/http-foundation: ^7.2
- symfony/http-kernel: ^7.2
- symfony/translation-contracts: ^3.5
Requires (Dev)
- dama/doctrine-test-bundle: ^8.2
- doctrine/doctrine-migrations-bundle: ^3.7
- php-cs-fixer/shim: ^3.58
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.5 || ^12.1
- sulu/form-bundle: ^3.0
- symfony/browser-kit: ^7.2
- symfony/monolog-bundle: ^3.10 || ^4.0
- symfony/twig-bundle: ^7.2
- symfony/yaml: ^7.2
Suggests
- sulu/form-bundle: To offer spam protection as a field in the forms editors build in the Sulu admin
Provides
None
Conflicts
None
Replaces
None
README
Invisible reCAPTCHA v3 in front of website form submissions: the dynamic forms editors build in the Sulu admin, Live Component forms and any Symfony form. Visitors never see a challenge. A bot that is caught gets the normal success page, so it never learns it was blocked, and everything it sent is logged in the Sulu admin, so a genuine visitor who was flagged by mistake can still be followed up.
What's inside
- Sulu forms: add the invisible Spam protection field to any form editors build in the admin.
- Symfony forms & Live Components: protect your own forms and endpoints with
SpamCheckerInterface. - Blocked submissions: review, filter and delete everything that was blocked, with retention and IP anonymising.
- Custom spam checker: swap reCAPTCHA for another provider or add checks of your own.
Documentation
Installation, configuration and everything else: sulu.eekes.be/sulu-spam-protection-bundle.
License
MIT