aiviemarketing/mautic-recaptcha

This plugin brings reCAPTCHA integration to Aivie and mautic.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 33

Type:mautic-plugin

dev-main 2024-09-25 12:15 UTC

This package is auto-updated.

Last update: 2025-03-19 13:28:45 UTC


README

license Packagist mautic

This Plugin brings reCAPTCHA integration to mautic 3 and 4.

Installation

mautic 3 & 4

Supports reCaptcha v3.

Add this code to the plugins/ directory of your mautic installation.

Execute composer require google/cloud-recaptcha-enterprise in the main directory of the mautic installation.

@todo needs to be moved to the plugins composer.json, when we support composer v2. So we can install the https://github.com/mautic/composer-plugin.

Configuration

Navigate to the Plugins page and click "Install/Upgrade Plugins". You should now see a "reCAPTCHA" plugin. Open it to enable it.

Set the following ENV variables on your server:

  • GOOGLE_CLOUD_PROJECT
  • GC_RECAPTCHA_SITE_KEY
  • GOOGLE_APPLICATION_CREDENTIALS

The plugin relies on Google reCAPTCHA Enterprise. For it to work it needs Google Application Default Credentials.

Usage in a Mautic Form

Add "reCAPTCHA" field to the Form and save changes. mautic form

Score validation

reCAPTCHA v3 will rank traffic and interactions based on a score of 0.0 to 1.0, with a 1.0 being a good interaction and scores closer to 0.0 indicating a good likelihood that the traffic was generated by bots

score validation

Based on

https://github.com/KonstantinCodes/mautic-recaptcha