ralkage/flarum-ext-cap-captcha 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ralkage/flarum-ext-cap-captcha

Composer 安装命令:

composer require ralkage/flarum-ext-cap-captcha

包简介

Self-hosted CAPTCHA using Cap (proof-of-work) for registration and login protection

README 文档

README

License: MIT

Self-hosted CAPTCHA extension for Flarum using Cap — a modern, privacy-focused, proof-of-work CAPTCHA alternative. No image puzzles, no third-party tracking.

How It Works

Cap uses SHA-256 proof-of-work instead of visual puzzles. When a user clicks the checkbox, their browser performs a computational challenge in the background. No images to identify, no data sent to third parties.

  • 250x smaller than hCaptcha (~20KB, zero dependencies)
  • Loads in milliseconds
  • Fully accessible
  • Self-hosted — your data stays on your server

Features

  • Registration protection — Cap widget on the sign-up form (enabled by default)
  • Login protection — Optional Cap widget on the login form
  • Server-side verification — Tokens verified against your Cap Standalone instance
  • Admin settings — Configure endpoint, secret key, and which forms to protect
  • Privacy-first — No telemetry, no tracking, fully self-hosted

Prerequisites

You need a running Cap Standalone server. The easiest way is Docker:

# docker-compose.yml
version: "3.8"
services:
  cap:
    image: tiago2/cap:latest
    container_name: cap
    ports:
      - "3000:3000"
    environment:
      ADMIN_KEY: your_secret_password
    volumes:
      - cap-data:/usr/src/app/.data
    restart: unless-stopped

volumes:
  cap-data:
docker compose up -d

Then access http://localhost:3000, log in with your admin key, and create a site key.

Installation

composer require ralkage/flarum-ext-cap-captcha
php flarum cache:clear

Enable the extension in the admin panel under Extensions > Cap CAPTCHA.

Configuration

In the extension settings:

Setting Description
Cap API Endpoint Your Cap instance URL with site key, e.g. https://cap.example.com/your-site-key/
Cap Secret Key Your site key's secret from the Cap dashboard
Require CAPTCHA on registration Show widget on sign-up form (default: on)
Require CAPTCHA on login Show widget on login form (default: off)

Requirements

Links

License

MIT License. See LICENSE for details.

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固