markocupic/contao-altcha-antispam

ALTCHA antispam form widget for Contao CMS

0.4.13 2024-09-10 16:54 UTC

This package is auto-updated.

Last update: 2024-11-10 17:21:37 UTC


README

logo

Contao Altcha Antispam

This is a Contao CMS implementation of Altcha. The extension provides a front end form field for the Contao form generator.

ALTCHA uses a proof-of-work (POW) mechanism to protect your forms from spam and abuse. Unlike other solutions, ALTCHA is self-hosted, does not use cookies nor fingerprinting, does not track users, and is fully compliant with GDPR.

Visit https://altcha.org

Installation

You can install the package via composer:

composer require markocupic/contao-altcha-antispam

Afterwards run the database migration task:

php vendor/bin/contao-console contao:migrate

Configuration and usage

Important! When installed, you have to set the hmac_key in your config/config.yaml.

markocupic_contao_altcha_antispam:
    hmac_key: 'sdfsadZUI#!@sfdssf321231' # required
    algorithm: 'SHA-256' # optional
    range_min: 10000 # optional
    range_max: 100000 # optional
    challenge_expiry: 3600 # optional

Endpoint (route)

Out of the box, the extension will use the /_contao_altcha_challenge endpoint to get the challenges.