F***Captcha
Open source CAPTCHA that blocks bots, vision AI agents, and automation - with a single click or less.
Try the Live Demo · Product overview

FCaptcha is a modern CAPTCHA system designed to detect everything: traditional bots, headless browsers, automation frameworks, CAPTCHA farms, and the new generation of AI agents — from vision models that screenshot-and-click to computer-use agents that drive a real browser over the Chrome DevTools Protocol.
Try it in 60 seconds
1. Run the server
export FCAPTCHA_SECRET="$(openssl rand -hex 32)"
docker run -d -p 127.0.0.1:3000:3000 -e FCAPTCHA_SECRET ghcr.io/webdecoy/fcaptcha:latest
The demo page is now at http://localhost:3000/demo/.
The same page is hosted at
https://webdecoy.com/product/fcaptcha-demo/.
Its optional detection-research contribution is off by default and requires an
explicit opt-in on every page load. Form values are not sent to FCaptcha or
retained with research samples.
2. Add the widget to a form
<form method="post" action="/signup">
<div data-fcaptcha="your-site-key" data-endpoint="http://localhost:3000"></div>
<button>Sign up</button>
</form>
<script src="http://localhost:3000/fcaptcha.js"></script>
Once the visitor passes, the token is posted with the form as fcaptcha_token.
3. Verify the token on your backend with the call you already make to Turnstile, reCAPTCHA or hCaptcha, pointed at your own server:
- https://challenges.cloudflare.com/turnstile/v0/siteverify
+ http://localhost:3000/turnstile/v0/siteverify
Production setup (Compose, Helm, Fly.io, building from source, native SDKs) is in the full Quick Start.
Why FCaptcha
- It catches AI agents, not just bots. Vision agents that screenshot and click, and computer-use agents that drive a real browser over CDP, leave input-event traces that FCaptcha scores. How
- It replaces Turnstile, reCAPTCHA or hCaptcha by changing a base URL. It serves the same
siteverify contract on the same paths.
- It runs on your server. No cookies, no third parties, no phone-home. COMPLIANCE.md lists every retention window.
- No puzzle to fail. Screen-reader, keyboard-only, tremor and elderly personas run against a false-positive budget in CI that fails the build when exceeded.
- The algorithm is open. Every score is itemised with a reason, and every threshold came from measured browser traces.
How it compares
|
FCaptcha |
reCAPTCHA |
hCaptcha |
Turnstile |
ALTCHA |
mCaptcha |
| Self-hosted |
Yes |
No |
No |
No |
Yes |
Yes |
| Open source |
MIT |
No |
No |
No |
MIT |
AGPL |
| Image or audio puzzle |
Never |
Sometimes |
Sometimes |
Never |
Never |
Never |
| Visitor data sent to a third party |
No |
Google |
hCaptcha |
Cloudflare |
No |
No |
| Behavioural and environmental bot detection |
Yes, open source |
Yes, proprietary |
Yes, proprietary |
Yes, proprietary |
Proof of work only[^altcha] |
Proof of work only |
Turnstile-compatible siteverify |
Yes |
No |
No |
Yes |
No |
No |
[^altcha]: The open-source ALTCHA widget. ALTCHA also sells separate commercial products.
Runnable examples
Integrations
Setup recipes for Gitea, Django and Flask-WTF cover paired
widget/verifier URLs, server-only credentials and the checks performed.
Statamic: the Captcha addon
supports FCaptcha from v1.18.0. Install it with
composer require aryehraber/statamic-captcha, set CAPTCHA_SERVICE=Fcaptcha
and CAPTCHA_SERVER_URL to your server, and add {{ captcha }} to your forms.
Setup guide.
Gitea: use its reCAPTCHA setting, pointed at your FCaptcha server:
[service]
ENABLE_CAPTCHA = true
CAPTCHA_TYPE = recaptcha
RECAPTCHA_URL = https://your-fcaptcha-server.com/recaptcha/
RECAPTCHA_SITEKEY = your-site-key
RECAPTCHA_SECRET = your FCAPTCHA_VERIFY_SECRET
Apps that support Turnstile, hCaptcha or reCAPTCHA
If an app lets you change both the provider's script URL and its siteverify
URL, point them at your FCaptcha server. FCaptcha serves its widget on each
provider's script path, where it answers to that provider's JavaScript API
(turnstile.render, hcaptcha.getResponse, grecaptcha.reset and so on) and
fills that provider's form field:
| Provider |
Script URL |
Siteverify URL |
Form field |
| Turnstile |
/turnstile/v0/api.js |
/turnstile/v0/siteverify |
cf-turnstile-response |
| hCaptcha |
/1/api.js |
/siteverify |
h-captcha-response and g-recaptcha-response |
| reCAPTCHA |
/recaptcha/api.js |
/recaptcha/api/siteverify |
g-recaptcha-response |
score in the siteverify response is FCaptcha's, where lower is more human.
On /recaptcha/api/siteverify it follows reCAPTCHA v3 instead, where higher is
more human, so an app's existing threshold keeps working; FCaptcha's own score
is in fcaptcha_score there.
All features
- Drop-in for Turnstile / reCAPTCHA / hCaptcha - Serves the same
siteverify contract on the same paths, so migrating an existing backend is a base-URL change; tokens carry a signed hostname and action your app can check
- Single click or invisible - Checkbox mode like Turnstile/reCAPTCHA v2, or invisible mode like reCAPTCHA v3
- AI agent detection - Catches vision agents (screenshot→API→click), DOM/CDP-driven agents (Claude in Chrome, Operator-style computer use), and synthetic input that reports
isTrusted: true — via input-event forensics and LLM think-time cadence
- Declared & verified agents - Flags self-declaring agents (ClaudeBot, GPTBot, ChatGPT-User, PerplexityBot, Bytespider…) and cryptographically verifies Web Bot Auth (RFC 9421) signed requests against the agent's published key directory, surfaced as a distinct category so your app can allow polite/verified agents and block the rest
- Proof of Work - Server-verified SHA-256 hashcash with 256-bit HMAC signing, per-challenge nonces, and signal commitment that binds the challenge to the collected signals. A liveness and timing gate rather than a cost function — see what it does and does not buy you
- Comprehensive bot detection - Headless browsers, WebDriver, Puppeteer, Playwright, Selenium, plus CDP console-attach detection
- Behavioral biometrics - 40+ signals including micro-tremor, velocity/acceleration curves, trajectory analysis, coalesced pointer events, and teleport-click detection
- Localized - The widget ships 34 languages with automatic detection from
<html lang> or the browser, right-to-left layout for Arabic/Hebrew/Persian, and a strings override for anything not bundled
- Mobile-native - Touch kinematics and passive device-sensor entropy, with accessibility exemptions for keyboard-only and touch users
- TLS fingerprinting - JA3 (client-supplied) and JA4 (un-spoofable, from a trusted reverse proxy) matched against known automation tools
- Credential stuffing protection - Form interaction analysis, timing, and programmatic submit/fill detection
- Self-hosted & privacy-first - No cookies, no third-party data sharing, no cross-site tracking. Nothing is written to disk and every retention window is enumerated in COMPLIANCE.md. Available on npm/CDN with Subresource Integrity when you'd rather not host the widget yourself
- Accessible, and tested for it - No visual or audio puzzle to fail. The widget's WCAG 2.2 AA position is verified in CI — contrast, focus visibility that survives a host stylesheet, target size, reflow, reduced motion — alongside a benchmark panel of screen-reader, keyboard-only, motor-tremor and elderly personas whose false-positive budget fails the build when exceeded
- Input forensics - Typing cadence and modality (keystrokes vs. paste vs. a value assigned into the DOM), scroll morphology, and platform contradictions like a Ctrl+V paste from a browser claiming macOS
- Open algorithm - Transparent, evidence-accumulating scoring across ~12 categories, fully auditable
- Measured, not asserted - A benchmark harness captures real browser traces for 14 human personas (keyboard-only, screen-reader, touch, tremor, elderly, DevTools-open, privacy-extension…) and reports a per-signal false-positive budget in CI. Every threshold in the behavioural layer was derived from it
- Multi-language servers - Go, Python, or Node.js, kept in lockstep
Quick Start
Docker (recommended)
A prebuilt public image is available at ghcr.io/webdecoy/fcaptcha for Linux AMD64 and ARM64. No GitHub login or source build is required. Use :latest to try the current image, or pin a release tag (for example, :1.51.3) or digest for reproducible deployments.
See the Docker guide for local startup, Compose, version pinning, and upgrades. If you already run CapRover, install FCaptcha from One-Click Apps. If you run Unraid, install FCaptcha from Community Apps.
Using Better Auth? Follow the runnable email sign-up example to point its CAPTCHA plugin at FCaptcha.
Quick local start:
docker run -d --name fcaptcha -p 127.0.0.1:3000:3000 -e FCAPTCHA_SECRET="$(openssl rand -hex 32)" ghcr.io/webdecoy/fcaptcha:latest
This gives you:
- API at
http://localhost:3000/api/*
- Client JS at
http://localhost:3000/fcaptcha.js
- Demo page at
http://localhost:3000/demo/
Docker Compose (single instance):
FCAPTCHA_SECRET="$(openssl rand -hex 32)" docker compose -f docker/docker-compose.yml up -d
FCaptcha state is process-local by default. Setting REDIS_URL shares PoW
challenges, token replay protection, Siteverify idempotency, rate limits,
suspicion, fingerprint cardinality, and site-key rotation guards across
replicas, so the Go, Node and Python servers can each run more than one.
Challenge and token consumption are atomic.