Back to services

Cap

privacy-first, open-source and self-hosted CAPTCHA alternative with PoW and instrumentation challenges.

View alternatives to Cap
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Cap is an open-source CAPTCHA solution built by developer tiago.zip, released under the Apache 2.0 license, with about 6.2k stars on GitHub. It can be deployed entirely on your own server, with no dependence on Google or any other third-party service. It collects no telemetry and doesn't make users do image puzzles like "select all the traffic lights." According to its website, organizations such as bunny.net, AdGuard and Fraunhofer already use Cap in production.

How it works: two independent layers of protection

Each verification runs two independent challenges at the same time. If an attacker gets past one layer, the other still holds:

  1. Proof of work and time-lock (PoW / Time-lock): The client uses WASM to compute SHA-256 hashes in parallel, and at the same time solves a time-lock challenge designed specifically to resist GPU acceleration.
  2. JavaScript browser checks (Instrumentation): The server generates a fresh JS program each time, which runs sophisticated checks on the DOM, layout, Canvas, event trustworthiness, webdriver and more to confirm that the visitor is using a real browser.

These checks make it hard to scale automated abuse. You can also configure detection rules as needed to block automated browsers driven by AI agents.

Key strengths

  • Privacy first: No cookies, no fingerprint tracking, no third-party network requests, and your data never leaves your server.
  • Extremely lightweight: The client component is about 20 kB (minified + gzip) and has no dependencies. Comparison figures from the website: ALTCHA about 34 kB, Turnstile about 110 kB, reCAPTCHA about 500 kB, hCaptcha about 600 kB.
  • Invisible verification: Verification completes silently in the background without disturbing regular users.
  • Fully customizable: Colors, sizes, positions and icons can all be adjusted with CSS variables, with no iframe restrictions.
  • Free even at large scale: No quotas and no per-request fees.
  • Compliance-friendly: The website lists applicable regulations including GDPR, CCPA/CPRA, HIPAA, PIPEDA, LGPD, DPDPA, PIPL and 152-FZ. For accessibility, it supports WCAG 2.2 AA, EAA/EN 301 549 and Section 508, as well as multiple languages and right-to-left (RTL) layouts. The website also cautions that whether you are ultimately compliant depends on how you deploy it.

Deployment and migration

  • The official Cap Standalone can be deployed as a Docker container, which the website says takes about 15 minutes. It comes with its own admin dashboard, and a $5 VPS is enough for most sites.
  • On the frontend, you include the Cap widget; on the backend, you call the siteverify endpoint to validate the result.
  • Migrating from reCAPTCHA or hCaptcha: Cap's siteverify API is compatible with both, so backend changes are minimal, but the frontend needs to be switched to Cap's widget.

Who it's for

  • Websites and developers who want to move away from third-party CAPTCHAs such as Google's or Cloudflare's
  • Businesses or organizations with strict privacy compliance requirements, such as European operations subject to GDPR
  • Services that want to prevent spam sign-ups and API abuse without hurting the user experience

The website offers documentation, a live demo, and detailed comparison pages against reCAPTCHA, hCaptcha and Turnstile, and it also has Simplified Chinese documentation.