Download the PHP package peopleinside/fla-powcaptcha without Composer

On this page you can find all versions of the php package peopleinside/fla-powcaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fla-powcaptcha

PoW CAPTCHA for Flarum

Packagist

A local Proof-of-Work CAPTCHA extension for Flarum that protects login, registration and password-reset forms without relying on any external service (no Cloudflare, no Google reCAPTCHA, no cookies).

How it works

  1. When an auth modal opens, the browser silently fetches a one-time challenge from the Flarum API.
  2. The browser solves a SHA-256 hash puzzle (finds a nonce N such that SHA-256(challenge:N) starts with D hex zeros, where D is the configured difficulty).
  3. The solution token challenge:nonce is appended to the form submission.
  4. The server verifies the solution and rejects the request if the check fails.

Bots must solve the same puzzle for every request; legitimate users complete it invisibly in the background (< 100 ms at the default difficulty).

Features

Requirements

Dependency Version
PHP ≥ 8.1
Flarum ^1.8 or ^2.0

Screenshot

Screenshot 2026-05-14 205357 1778785001-133386-screenshot-2026-05-14-205627

Disclaimer

This software is provided "AS IS", without any warranty. While it has been tested and reasonable efforts are made to ensure security and reliability, no guarantees are provided. As an open project, anyone may contribute or report issues, but this does not imply endorsement or liability from the maintainers.

You use this software entirely at your own risk. The authors and contributors are not liable for any damages, data loss, or unexpected behavior resulting from its use, modification, or distribution. Always review and test the code independently before deploying it in critical or production environments.

Installation

For Flarum 1.8 use the version 2.3 The future will be Flarum 2.0 that support the latest release. Install with

Update

How to remove

Then enable the extension in the Flarum admin panel.

Configuration

Go to Admin → Extensions → PoW CAPTCHA and choose:

Setting Default Description
Enable on Login Protect the login form
Enable on Registration Protect the sign-up form
Enable on Password Reset Protect the forgot-password form
Difficulty 4 – High (~1 s) SHA-256 leading-zero count (3–5)

Development (for contributors only)

The extension is distributed with pre-compiled frontend assets (js/dist/*), so no JS build step is required to install or use it on Flarum 2.x.

After upgrading from an older release on Flarum 1.8, rebuild the forum bundle so auth modals are extended correctly:

Security Notes

Running Behind a Reverse Proxy / Load Balancer

Challenges and tokens are bound to the visitor's IP address. If your Flarum instance sits behind a reverse proxy or load balancer that does not populate REMOTE_ADDR with the real client IP, you must set one of the following keys in your config.php so Flarum (and this extension) can resolve the correct IP from forwarded headers:

If neither is set and the server also can't fall back to REMOTE_ADDR, IP resolution returns empty and this extension will reject all challenge requests with a 429 to fail safe. A warning is logged in that case ([fla-powcaptcha] ...) — check your Flarum log if users report being unable to log in, register, or reset their password.

License

Apache-2.0


All versions of fla-powcaptcha with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
flarum/core Version ^1.8 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package peopleinside/fla-powcaptcha contains the following files

Loading the files please wait ...