Which open-source proof-of-work CAPTCHA should you self-host?

Updated

ALTCHA, Cap and Private Captcha all make the browser solve a small proof of work, so visitors see no puzzle. They differ in what you must run and what the license lets you do. ALTCHA (MIT) is a library you add to your own server. Cap (Apache 2.0) is a Docker container plus a Valkey database. Private Captcha's self-hosted edition is free for non-commercial use only. In our test on 2026-10-23, the ALTCHA widget loaded 32,964 bytes and the Cap widget 27,038 bytes, with no cookies. Bot403, which we make, is the hosted option on this page: it uses the ALTCHA protocol, and you run nothing.

The three side by side

ALTCHA Cap Private Captcha
License MIT Apache 2.0 PolyForm Noncommercial (community edition)
Free to self-host for a business yes yes no. Commercial licenses for the enterprise edition on request
What you run a challenge endpoint in your own app, with an ALTCHA library capd (a Docker image on Bun) and Valkey, at a public HTTPS URL a Go server with Postgres and ClickHouse
Server libraries TypeScript, Dart, .NET, Elixir, Go, Java, PHP, Python, Ruby, Rust, C++ any language: one POST to /siteverify not checked
reCAPTCHA-compatible verify API no yes, also hCaptcha not checked
Widget size (vendor's figure, gzipped) 34 kB about 20 kB not checked
Measured page weight, our test 32,964 bytes, 2 requests 27,038 bytes, 4 requests not tested
Cookies, our test none none not tested
Paid hosted option ALTCHA Cloud, from €47 a month plus tax none: "no paid tier" from €6 a month for 1,000 requests plus VAT, 14-day trial
GitHub stars 2.9k 8.4k 199
Last verified 2026-11-12 2026-11-12 2026-11-12

Sources: ALTCHA pricing, ALTCHA on GitHub, ALTCHA server integration, Cap, Cap standalone server, Cap on GitHub, Private Captcha pricing, Private Captcha on GitHub. Measured rows: What each CAPTCHA loads (2026).

Which one is free for a business to self-host?

ALTCHA and Cap. Both have permissive licenses, MIT and Apache 2.0, so a company can run them on its own servers and change the code.

Private Captcha is different. Its README says the community edition is under a PolyForm Noncommercial license, which "allows you to self-host community edition of Private Captcha for non-commercial use". A company that wants to self-host it needs the commercial enterprise edition. Private Captcha does not publish a price for that, so ask them. For a personal project or a non-profit, the community edition is free.

How much do you have to run?

ALTCHA asks the least extra infrastructure, and Private Captcha the most.

  • ALTCHA runs inside your app. Your server must "generate a fresh, single-use challenge for each user interaction" and check the answer that the widget sends, with one of the ALTCHA libraries. The check needs no API call. You also keep a list of solved challenges, so that no answer works twice.
  • Cap runs beside your app. capd is the Cap server as a Docker image. Its docs say it "idles at about 30 MB of memory", and "Cap needs Valkey in every setup". Analytics go to DuckDB inside the container or to a separate ClickHouse. The widget talks to the server from the visitor's browser, so it needs a public HTTPS URL.
  • Private Captcha is a full service: a Go server "backed by ClickHouse and Postgres", as its README says. That is two databases to run and back up.

What does each one load on your page?

Neither widget we tested set a cookie, and both loaded under 33 KB. We tested ALTCHA 3.5.0 and Cap 0.1.58 on 2026-10-23 in headless Chromium, 3 runs each:

Widget Script bytes Total bytes Requests Cookies
ALTCHA 3.5.0 32,679 32,964 2 0
Cap 0.1.58 26,798 27,038 4 0
Bot403 6,351 6,798 2 0

In the test, both widgets came from jsDelivr, as their docs show, and the challenge came from our local server. When you self-host, you can serve the widget files from your own domain, so the visitor's browser connects to no one else. We did not test Private Captcha. The benchmark page has the method and the raw data.

What do they do against bots that solve the puzzle?

A proof of work makes each submit cost CPU time. A bot with enough CPU can still pay it, so each project adds something on top:

  • ALTCHA offers Sentinel, a paid self-hosted product from €99 a month, with a spam classifier, IP blocking and rate limits.
  • Cap has checks against automated browsers, on by default for new site keys.
  • Private Captcha uses a proof of work that is hard on both CPU and memory.

A proof of work alone does not stop a person who types spam by hand, and Bot403 does not either.

Which should you pick?

  • Pick ALTCHA if you want a library and not a service. It has the widest list of server languages, plugins for Django and WordPress, and the MIT license.
  • Pick Cap if you can run a container and want these for free: a reCAPTCHA-compatible verify API, so you change little on the server, and automated-browser checks. It has the most GitHub stars of the three, 8.4k.
  • Pick Private Captcha if you want WordPress, Magento 2 or TYPO3 plugins and either a non-commercial site or a hosted plan. Its hosted plans have EU-only endpoints.
  • Pick none of them if your form gets spam from people. A proof of work makes automated submits cost more, and does nothing against a person.

Should you self-host at all?

Self-host if you already run servers and want to own every part. All three are good projects, and ALTCHA and Cap cost nothing for any use.

If you would rather not run an endpoint, a container or a database for one contact form, a hosted service does that part. Bot403 is one: it runs an ALTCHA-compatible server for you, with replay protection and rate limits built in. You add one script tag and make one verify call. The ALTCHA widget works with it too. If you later run your own ALTCHA server, you point the widget at it with one URL change and check the answer on your server. The ALTCHA comparison and the Cap comparison go into each case in more detail, and so does the Private Captcha comparison.

How we checked

We read each project's pricing page, docs and GitHub README on 2026-11-12. The star counts are from that day. The page-weight numbers are from our own test of 2026-10-23, linked above. We make Bot403, so we have an interest here. Every fact about the other projects links to its source. All our comparisons are on the compare page.

Bot403 is free for 5,000 checks a month on 2 sites, with no card. 50,000 checks on 10 sites cost €3 a month, VAT included.

Get started free