markocupic/contao-altcha-antispam
Composer 安装命令:
composer require markocupic/contao-altcha-antispam
包简介
ALTCHA antispam form widget for Contao CMS
README 文档
README
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.
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
The extension runs out of the box and no further configuration is required. Nevertheless, some parameters can be configured.
The Complexity can be adjusted by modifying the minimum and maximum values of the randomly generated secret number on the server side (markocupic_contao_altcha_antispam.range_min and markocupic_contao_altcha_antispam.range_max).
A lower maximum value creates a less complex challenge, requiring fewer computational iterations for the client to find a matching solution. Conversely, a higher maximum value increases the complexity, demanding more computational resources and time from the client.
Run composer install in your terminal to clear and rebuild cache if you made changes to the config.yaml file.
# config/config.yaml markocupic_contao_altcha_antispam: algorithm: 'SHA-256' # optional, default is SHA-256 range_min: 290000 # Lower limit for the complexity (optional), default is 10000 range_max: 300000 # Upper limit for the complexity (optional), default is 100000 challenge_expiry: 3600 # optional, default is 3600
| key | default value | info | Required |
|---|---|---|---|
algorithm |
SHA-256 |
Choose between SHA-256, SHA-512 or SHA-384 |
no |
range_min |
10000 |
Complexity: 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 |
Complexity: 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.
markocupic/contao-altcha-antispam 适用场景与选型建议
markocupic/contao-altcha-antispam 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.99k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2024 年 02 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「antispam」 「contao」 「form field widget」 「ALTCHA」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 markocupic/contao-altcha-antispam 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 markocupic/contao-altcha-antispam 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 markocupic/contao-altcha-antispam 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Contao Open Source CMS
Honeypot extension for Nette Forms
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Increase your Flarum forum's security with hCaptcha.
Stand-alone antispambot function from WordPress
PHP client for tirreno security analytics API
统计信息
- 总下载量: 7.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 22
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-02-11



