thoughtco/statamic-stop-forum-spam

There is no license information available for the latest version (1.2.0) of this package.

Checks form submissions against stop forum spam

1.2.0 2024-04-10 06:55 UTC

This package is auto-updated.

Last update: 2024-09-10 07:47:45 UTC


README

This addon checks the Stop Forum Spam API for the presence of the IP or Email from your Form submissions.

Installation

Install by composer: composer require thoughtco/statamic-stop-forum-spam

Configuration

By default all Form Submissions will be checked for the presence of a text field with a type of email field, and if found a check will be run. It fallsback to checking for a field of any type with a fallback handle that you can specify in the config.

If you want to override this, publish the config:

php artisan vendor:publish --tag=statamic-stop-forum-spam

You then have the option to specify an array of specific forms to check, what field handle to check for and whether you want to fail silently.

Testing during development

If you want to test responses during development you can use the STATAMIC_STOP_FORUM_SPAM_TEST_MODE env value.

Setting it to disable will prevent the addon from running.

Setting it to fail with throw a validation error, or fail silently, depending on what the fail_silently config value is set to.