markocupic/contao-altcha-antispam

ALTCHA antispam form widget for Contao CMS

0.4.9 2024-02-16 23:13 UTC

This package is auto-updated.

Last update: 2024-04-16 23:26:52 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.

frontend frontend frontend

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
key default value info Required
hmac_key '' Set a kind of a secret key/salt, e.g. sdfsadZUI#!@sfdssf321231 yes
algorithm SHA-256 Choose between SHA-256, SHA-512 or SHA-384 no
range_min 10000 Choose a higher value to increase the complexity/duration. A minimum value of the random number of at least several thousand as a "minimum required complexity" is recomended. More no
range_max 100000 Choose a higher value to increase the complexity/duration. The maximum value of 100,000 is a good start for most systems. More no
challenge_expiry 3600 Choose an expiration time, so that there is not an infinite amount of time to solve the challenge. no

Endpoint (route)

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