CAPTCHA Open Source Self-Hosted

Open Source CAPTCHA: Self-Hosted Options Compared

Open source CAPTCHA options compared by license and hosting: ALTCHA, Cap, mCaptcha, Prosopo and more. What self-hosting takes, and when hosted fits better.

Published Dec 19, 2025 · 8 min read · Updated Oct 10, 2026

Key takeaways

Open code you can run yourself
An open source CAPTCHA publishes its code under an open license, so you can read it, change it and host it on your own servers. ALTCHA (MIT) and Cap (Apache 2.0) are proof-of-work CAPTCHAs that run entirely on your infrastructure and set no cookies.
Open does not always mean all of it
Friendly Captcha publishes its widget code but runs the verification as a hosted service. Prosopo publishes its code under Apache 2.0 but keeps its bot detection closed.
Self-hosting moves the work to you
You run the verification server, install the updates and keep it up when a bot wave hits. Check that the project is alive: mCaptcha's only release, version 0.1.0, dates from 2024.
TrustCaptcha is hosted, not open source
TrustCaptcha runs proof-of-work and bot scoring as a service in EU data centers, without cookies and with a DPA for every customer. It suits teams that want that without running the servers.
On this page
  1. What is an open source CAPTCHA?
  2. Open source CAPTCHA options compared
  3. Self-hosted CAPTCHA
  4. Is there an open source reCAPTCHA?
  5. The options in detail
  6. Is open source less secure?
  7. When a hosted EU service is the better choice
  8. Where TrustCaptcha fits
  9. Try TrustCaptcha
Share this post

What is an open source CAPTCHA?

An open source CAPTCHA is a CAPTCHA whose code is published under an open source license, so you can read it, change it and run it on your own servers. Both the widget in the browser and the check on the server are yours, and no CAPTCHA provider sees your visitors’ requests. ALTCHA and Cap are the two fully open proof-of-work CAPTCHAs we would look at first.

The license decides what you may do with the code. MIT and Apache 2.0 are permissive: you can use and change the code in your own product without publishing your changes. The AGPL is a copyleft license and asks that changes to code you run as a network service are published under the same license. If that matters for your project, check it with whoever handles licensing in your company.

“Open source” also gets used loosely. Some vendors publish the code of the widget and keep the service closed. That lets you audit what runs in your visitors’ browsers, but the verification still happens on the vendor’s servers.

Open source CAPTCHA options compared

The table lists the open source and partly open options we checked, with TrustCaptcha in the last row for comparison.

Open source and self-hosted CAPTCHA options
LicenseWhere it runsWorth knowing
ALTCHAMIT (widget)Your own servers; also ALTCHA Cloud, processed in the EU, from €47 a month, and self-hosted Sentinel from €99Proof-of-work without cookies, from BAU Software s.r.o. in Czechia
CapApache 2.0Your own servers only; there is no hosted versionProof-of-work without cookies; an actively maintained one-person project
mCaptchaAGPLYour own serversEffectively stalled: the only release is version 0.1.0, from 2024
Friendly CaptchaWidget code open source; the service is notHosted service; EU-only endpoint from the Advanced plan (€200 a month)Proof-of-work without cookies, from Friendly Captcha GmbH in Germany
Prosopo ProcaptchaCode under Apache 2.0; bot detection closed sourceHosted plan, free up to 10,000 requests a month; Professional from $39 a monthA UK company
TrustCaptcha (for comparison)Not open sourceHosted service, EU data centersProof-of-work and bot scoring, no cookies, a DPA for every customer

Prices per month; ALTCHA and TrustCaptcha prices exclude VAT.

Two more projects come up when you search for this. mosparo is an open source spam protection project from Switzerland, worth a look if form spam is your main problem. And the European Commission publishes an open source component called EU CAPTCHA under the EUPL-1.2 license. It is code you build into your own service, not a service you sign up for; our page on the EU CAPTCHA explains how it differs from the commercial products with the same name.

Self-hosted CAPTCHA

A self-hosted CAPTCHA runs on infrastructure you control. Your page loads the widget from your server, your server hands out the challenges, and your server checks the answers. Nothing about your visitors goes to a CAPTCHA provider, and nobody bills you per request.

Who runs what with a hosted CAPTCHA and a self-hosted one: with self-hosting you run the challenge and verification server, updates and capacity during an attack yourself, visitor data stays on your servers, there are no fees per request, and bot scoring is yours to build

In exchange, you take on the parts a provider would otherwise run:

  • A verification endpoint that has to be up whenever your forms are. If it goes down, you choose between blocking every submission and letting everything through.
  • A secret key on the server that signs the challenges. Whoever has it can create valid tokens.
  • Replay protection. A solved challenge should count once, so the server has to remember which ones were already used.
  • Updates and security fixes for a project you did not write, which means watching its releases.
  • Capacity during an attack. A bot wave hits your verification endpoint as hard as it hits your form.

For a team that already runs its own servers, that is ordinary work. For a team that does not, it is one more service nobody watches until it fails.

Self-hosting also decides what kind of check you get. ALTCHA and Cap are built on proof-of-work: every request costs the browser some computing time, which makes volume expensive for a bot. Proof-of-work does not judge whether a request looks automated. A bot score does that, and it needs signals and rules that you would have to build and keep current yourself.

Is there an open source reCAPTCHA?

No. reCAPTCHA is a closed Google service, and since 22 April 2026 it is part of Google Cloud Fraud Defense. The risk analysis runs on Google’s side, and you cannot host any part of it yourself. It is free up to 10,000 assessments a month per Google Cloud organization.

People who search for an open source reCAPTCHA usually want one of two things: a CAPTCHA that runs without Google, or one whose code they can inspect. ALTCHA and Cap give you both. They replace the reCAPTCHA widget on your form and the verification call on your server. Keep in mind that the check works differently: reCAPTCHA v3 returns a score from 0.0 to 1.0 based on Google’s signals, while a self-hosted proof-of-work CAPTCHA tells you whether the browser did the work. If you want to compare hosted services as well, our list of reCAPTCHA alternatives puts seven of them side by side.

The options in detail

Open source CAPTCHA options by license and hosting: ALTCHA, Cap and mCaptcha are fully open source, Friendly Captcha and Prosopo are partly open, TrustCaptcha is hosted in the EU and not open source

ALTCHA

ALTCHA is a proof-of-work widget under the MIT license from BAU Software s.r.o. in Czechia. It sets no cookies, and you can run it on your own servers for free. If you later decide you would rather not run it, ALTCHA Cloud starts at €47 a month and is processed entirely in the EU. Sentinel, the self-hosted edition, starts at €99 a month.

It suits teams that want open source with a company behind it, so there is someone to pay once they want hosting. Watch for the usual self-hosting work: the verification server is yours to run, update and secure.

Cap

Cap is a self-hosted proof-of-work CAPTCHA under the Apache 2.0 license, published at trycap.dev. It sets no cookies, and there is no managed version at all, so there are no quotas and no per-request fees either.

It suits developers who want full control and are comfortable running one more small service. Watch for what happens if the maintainer stops: Cap is a one-person project. It is actively maintained, but there is no company behind it.

mCaptcha

mCaptcha is licensed under the AGPL and looks effectively stalled: the only release is version 0.1.0, from 2024. We would not start a new project on it. If you already run it, plan the move before a browser change or a new kind of bot forces it.

Friendly Captcha

Friendly Captcha GmbH from Wörthsee in Germany publishes the code of its widget, but the verification is a hosted service. It uses proof-of-work and sets no cookies. Plans start at €9 a month, and the EU-only endpoint, hosted in Germany, needs the Advanced plan at €200 a month.

It suits teams that want to read the widget code without running the service themselves.

Prosopo Procaptcha

Prosopo is a UK company. The code of Procaptcha is published under Apache 2.0, but its bot detection is closed source. The hosted plan is free up to 10,000 requests a month, and Professional starts at $39 a month.

That split is worth noticing. The parts that benefit from public review are open, and the part a bot author would most like to read stays closed.

Is open source less secure?

Not because the code is public. Proof-of-work does not depend on secrecy: a bot that has read every line still has to do the computation, and across a hundred thousand requests that adds up.

Openness matters more for bot detection. A rule that flags automated browsers works as long as the bot does not know about it. Once the rules are public, a bot author can read them and avoid them, which is why some projects open everything except detection.

In practice, the bigger risk is neglect. A project with one maintainer, or with no release in two years, will fall behind the bots that target it. Whatever you pick, look at the release history before you build on it.

Proof-of-work has one more limit, hosted or not: an attacker who sends only a few targeted requests pays very little. On login and signup forms, add rate limits and a honeypot CAPTCHA field, or use a service that scores each request. Our page on CAPTCHA alternatives shows how those layers fit together.

When a hosted EU service is the better choice

Self-hosting is the right call when visitor data must not leave your own servers, when you already run infrastructure and someone looks after it, or when per-request fees would add up on a high-volume site.

A hosted service is the better choice when nobody on the team wants to run one more server, when you need bot scoring on top of proof-of-work, or when you want a contract and a Data Processing Agreement with a company that is accountable if something breaks. If data protection is the reason you looked at self-hosting, an EU CAPTCHA that processes data in the EU and sets no cookies keeps the data in the EU without the servers. Whether a setup meets the GDPR is a question for your data protection officer; this page is not legal advice.

For a contact form that mostly gets spam, the answer may be simpler still. Our page on form spam protection covers the lighter options.

Where TrustCaptcha fits

TrustCaptcha is not open source. It is a hosted service from Trustcaptcha GmbH in Munich, and on a page about open source we would rather say that plainly.

Every plan includes proof-of-work that gets harder with the risk of the request. From the Solo plan at €36 a month, bot detection scores each request from about 35 signals, and you can add your own rules. Several honeypot fields are built into the widget. TrustCaptcha sets no cookies, processes data in EU data centers and includes a Data Processing Agreement for every customer. Your server validates the result with one API call, and the integration samples are on GitHub.

It suits teams that want data processed in the EU and nothing for visitors to solve, and would rather not run the verification servers themselves. If you need to read and run every line yourself, ALTCHA or Cap is the better fit.

Try TrustCaptcha

Every plan starts with a 14-day free trial, and non-commercial websites can use TrustCaptcha for free with 500 verifications a month. Start your free trial and test it on one form next to the open source option you are considering.

FAQs

What is an open source CAPTCHA?
An open source CAPTCHA is a CAPTCHA whose code is published under an open source license such as MIT, Apache 2.0 or the AGPL. You can read and change the code and run both the widget and the verification on your own servers, so no CAPTCHA provider receives your visitors' requests.
Is there an open source version of reCAPTCHA?
No. reCAPTCHA is a closed Google service and, since April 2026, part of Google Cloud Fraud Defense. If you want open source in its place, ALTCHA (MIT) and Cap (Apache 2.0) are self-hosted proof-of-work CAPTCHAs that replace both the widget on your form and the check on your server.
What is the best open source CAPTCHA?
For most teams, ALTCHA or Cap. ALTCHA has a company behind it and paid options if you later want hosting. Cap is self-hosted only and actively maintained by one person. mCaptcha has had no release since version 0.1.0 in 2024.
What is a self-hosted CAPTCHA?
A self-hosted CAPTCHA runs on servers you control: the widget script, the endpoint that issues challenges and the check that verifies the answers. No third party sees your visitors' requests, but updates, uptime and capacity during an attack are your job.
Are open source CAPTCHAs less secure?
Not because the code is public. Proof-of-work costs a bot computing time whether or not it knows the algorithm. Public code matters more for bot detection rules, which a bot author can read and work around, and that is why some vendors open their widget but keep detection closed.
Is an open source CAPTCHA free?
The software is free to use; running it is not, because you pay for the servers and the time to look after them. ALTCHA also sells a hosted Cloud from €47 a month and a self-hosted Sentinel edition from €99 a month, excluding VAT.
Is a self-hosted CAPTCHA GDPR compliant?
Self-hosting means no CAPTCHA provider receives your visitors' data, which keeps the setup simple from a data protection point of view. What you log and how long you keep it is still your decision. This is not legal advice; clear the details with your data protection officer.
Is TrustCaptcha open source?
No. TrustCaptcha is a hosted service run by Trustcaptcha GmbH in Munich. It combines proof-of-work with bot scoring, sets no cookies, processes data in EU data centers and includes a Data Processing Agreement for every customer.

Stop bots and spam

Stop spam and protect your website from bot attacks. Secure your website with our user-friendly and GDPR-compliant CAPTCHA.