Skip to content

Services

hCaptcha

Add a human-verification step to signup or contact forms that are attracting automated submissions.

A mailing list can fill up with fake addresses if a program keeps submitting its signup form. hCaptcha checks visitors and can ask them to complete a challenge. Your site verifies the result before accepting the signup.

Add it to a test signup page and go through the flow on a phone. Check that a successful visitor can finish signing up and that someone whose check expires gets a clear chance to retry.

When to use it
If you want a free captcha that works with Supabase sign-in, or one that doesn’t come from Google or Cloudflare.
When to skip it
If you don’t want visitors picking pictures. The free plan always shows a challenge. Its 99.9% Passive mode, which rarely shows one, needs Pro.
What it costs
Basic is free, as of November 2026. Pro is $99 a month billed yearly, or $139 month to month, with 100,000 checks a month included.

Stop bots with hCaptcha

Add an hCaptcha check to a sign-up, sign-in or contact form. A visitor who completes it gets a one-time code, called a pass. Your server confirms each pass with hCaptcha before it accepts the form.

You’ll need

  • A website or app with a form you want to protect, like sign-up or contact.
  • Your AI tool, set up and working in your product’s folder.
  • Server code that handles the form, or Supabase sign-in.
  • hCaptcha account.

Your part

  • Sign up for hCaptcha and copy your sitekey and secret somewhere private.
  • Add the real keys to your host’s settings.
  • Test the form on your live site, and check that a made-up pass is refused.

Copy the prompt for these steps

All 3 steps, in one prompt
I’m following “Stop bots with hCaptcha” on BuildLadder.
What the guide says I’ll end up with: Your form shows an hCaptcha check, and your server refuses any submission without a valid pass.
This comes from https://buildladder.com/tools/hcaptcha#security. If you can open web pages, read https://buildladder.com/tools/hcaptcha.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## Step 1 of 3: Get your hCaptcha keys

This step is mine to do. Walk me through it, one action at a time:
- Go to hcaptcha.com and choose its free account option. Follow the account setup.
- After signing in, find the keys for your site and account.
- Copy the public sitekey and the private secret somewhere private, like a note only you can see.

It worked when: You have your sitekey and your secret saved somewhere private.

Keep for later: You need both keys again in “Add the keys to your host and test”.

If something goes wrong:
- You can’t find your sitekey later. Open Sites and select the site you are protecting.
- You lost the secret. hCaptcha doesn’t keep a copy you can view again. Open your account settings from the profile icon and choose Generate New Secret. Copy it before you leave the page. On the free plan you can do this once a day.
- You’re not sure which key is which. The sitekey is public. The account secret is private and may start with ES_.

## Step 2 of 3: Add hCaptcha and check it on the server

I want to protect a form in this product with hCaptcha. Read PLAN.md if there is one. Check hCaptcha’s current docs first. Don’t rely on memory.

Ask me which form to protect, like sign-up, sign-in or contact. Then:
1. If my sign-in uses Clerk, stop and tell me how to check Clerk’s own bot protection is turned on instead.
2. If my sign-in uses Supabase Auth, use Supabase’s built-in CAPTCHA support with hCaptcha. Pass the captcha token to the sign-up and sign-in calls, and tell me where to paste the secret in the Supabase dashboard.
3. Otherwise, add the hCaptcha widget to that form, and send its pass to my server with the form.
4. On the server, check every pass with hCaptcha’s siteverify endpoint before doing anything else. Send a form-encoded POST, not JSON, and include my sitekey. Refuse the form unless success is true, and show a friendly message asking the person to try again.
5. Reset the widget after each send, because each pass works only once.
6. Read the sitekey and the secret from environment variables. Make sure Git ignores .env, and tell me which name is public and which is secret.
7. On my computer, use hCaptcha’s test sitekey and test secret, because hCaptcha doesn’t accept localhost with real keys. Put those test keys in .env for me. They are public, so that is safe. My real keys go only in my host’s settings.
8. Never put the secret in code that runs in a browser or on a phone.

If my site sets a Content Security Policy, add the hCaptcha addresses its docs list. If my product has no server code, stop and explain my options before you change anything. Keep everything that already works.

It worked when: The hCaptcha widget shows on your form on your computer, and the form still sends when the check passes.

Before we move on, check with me:
- Did your AI tool show you the server code that calls siteverify, or the Supabase setting it uses?

If something goes wrong:
- The widget doesn’t load on your computer. hCaptcha blocks localhost with real keys. Use the test sitekey 10000000-ffff-ffff-ffff-000000000001 on your computer, and your real sitekey on your live site.
- Your AI tool only added the widget, with no server check. Say: “Add a server check with siteverify, and refuse the form unless success is true.” Without it, a bot can skip the widget.
- The browser console mentions a Content Security Policy. Your site blocks outside scripts. Say: “Add hcaptcha.com and *.hcaptcha.com to my Content Security Policy, as hCaptcha’s docs list them.”

## Step 3 of 3: Add the keys to your host and test

This step is mine to do. Walk me through it, one action at a time:
- Open your host’s environment variable settings. “Where do my API keys go?” in Answers names the page for Vercel, Netlify and Cloudflare.
- Add the sitekey and the secret, using the names your AI tool gave you. Mark the secret as secret if your host offers that.
- If you use Supabase sign-in, put the secret in Supabase instead. In Supabase’s Authentication settings, find Bot and Abuse Protection and turn on Enable CAPTCHA protection.
- Still in Supabase, choose hCaptcha as the provider, paste the secret, and click Save.
- Put your site online again from your host, so it uses the new keys.
- Open your live site in a private browser window and send the form. It should go through after the challenge.
- Ask your AI tool: “Send one request to my live form with a made-up hCaptcha pass, and show me the reply.” It should be refused.

It worked when: The form on your live site goes through for a real visitor, and a made-up pass is refused.

If something goes wrong:
- The live form fails the check for everyone. Check that the secret on your host is your real secret, not the test one, then put the site online again. Test keys only work with each other.
- Visitors say the picture challenges are annoying. You can set an easier difficulty level for your sitekey. Or compare Turnstile and reCAPTCHA in Security, under Concepts.

The steps

  • Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
  • Save a version after every step that works.
  • If a screen looks different from a step, ask your AI tool where the setting moved.
  • Never paste a password or secret key into the chat.
  1. A form that turns bots away

    Get your hCaptcha keys

    You

    hCaptcha gives you two keys. The sitekey is public and goes in your page. The secret stays on your server and in your host’s settings.

    1. Go to hcaptcha.com and choose its free account option. Follow the account setup.
    2. After signing in, find the keys for your site and account.
    3. Copy the public sitekey and the private secret somewhere private, like a note only you can see.

    It worked when: You have your sitekey and your secret saved somewhere private.

    Keep: You need both keys again in “Add the keys to your host and test”.

    You can’t find your sitekey later.

    Open Sites and select the site you are protecting.

    You lost the secret.

    hCaptcha doesn’t keep a copy you can view again. Open your account settings from the profile icon and choose Generate New Secret. Copy it before you leave the page. On the free plan you can do this once a day.

    You’re not sure which key is which.

    The sitekey is public. The account secret is private and may start with ES_.

  2. Add hCaptcha and check it on the server

    AI tool

    The widget goes on your form, and new server code sends each pass to hCaptcha. A form that skips this server check isn’t protected at all.

    It worked when: The hCaptcha widget shows on your form on your computer, and the form still sends when the check passes.

    Check this step
    • Did your AI tool show you the server code that calls siteverify, or the Supabase setting it uses?
    The widget doesn’t load on your computer.

    hCaptcha blocks localhost with real keys. Use the test sitekey 10000000-ffff-ffff-ffff-000000000001 on your computer, and your real sitekey on your live site.

    Your AI tool only added the widget, with no server check.

    Say: “Add a server check with siteverify, and refuse the form unless success is true.” Without it, a bot can skip the widget.

    The browser console mentions a Content Security Policy.

    Your site blocks outside scripts. Say: “Add hcaptcha.com and *.hcaptcha.com to my Content Security Policy, as hCaptcha’s docs list them.”

  3. Add the keys to your host and test

    You

    Your live site needs the real keys, which go in your host’s settings. A request with a made-up pass then shows whether your server really checks.

    1. Open your host’s environment variable settings. “Where do my API keys go?” in Answers names the page for Vercel, Netlify and Cloudflare.
    2. Add the sitekey and the secret, using the names your AI tool gave you. Mark the secret as secret if your host offers that.
    3. If you use Supabase sign-in, put the secret in Supabase instead. In Supabase’s Authentication settings, find Bot and Abuse Protection and turn on Enable CAPTCHA protection.
    4. Still in Supabase, choose hCaptcha as the provider, paste the secret, and click Save.
    5. Put your site online again from your host, so it uses the new keys.
    6. Open your live site in a private browser window and send the form. It should go through after the challenge.
    7. Ask your AI tool: “Send one request to my live form with a made-up hCaptcha pass, and show me the reply.” It should be refused.

    It worked when: The form on your live site goes through for a real visitor, and a made-up pass is refused.

    The live form fails the check for everyone.

    Check that the secret on your host is your real secret, not the test one, then put the site online again. Test keys only work with each other.

    Visitors say the picture challenges are annoying.

    You can set an easier difficulty level for your sitekey. Or compare Turnstile and reCAPTCHA in Security, under Concepts.

Compare hCaptcha with the other options

Stuck? Try these, in order
  1. Stop asking it to “fix it”. Say exactly what’s wrong.

    Paste this into the same chat. It asks your AI tool to find the problem with you.

    Troubleshooting prompt
    I’m following “hCaptcha” on BuildLadder and something isn’t working.
    This comes from https://buildladder.com/tools/hcaptcha. If you can open web pages, read https://buildladder.com/tools/hcaptcha.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.
    
    Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.

  2. Check the service isn’t down.

    If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.

  3. Go back to your last saved version.
    Troubleshooting prompt
    Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.

  4. Make the change smaller.
    Troubleshooting prompt
    Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.

  5. Ask a person.

    Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.

    Problem report
    What I'm building: (one sentence)
    What I asked my AI tool to do: (the last request)
    What I expected: (what should happen)
    What happened instead: (what you see)
    The exact error, if any: (copy it here)
    What I've tried: (each attempt, in order)
    My tools: (AI tool, website or app, hosting)

Look things up

Questions people ask

Words used on this page

Captcha
A captcha is a quick check that a person, not a bot, is filling in a form. It runs in the browser, then your server asks the captcha service whether the visitor passed.
API key
An API key is a long code that tells a service your app is allowed to use it. Many keys are secret, so treat them like passwords and keep them out of shared code.
Environment variable
An environment variable is a named setting stored outside your code, such as an API key or a database address. Your app reads it when it runs, so secrets stay out of your shared files.
Backend
The backend is the behind-the-scenes part of an app that visitors never see. It runs on a server, where it saves data and checks who is signed in.
Localhost
Localhost is the name your computer uses for itself. When your site runs at an address like http://localhost:3000, it's a private preview that only you can see.
Deploy
To deploy means to put your website or app online so other people can use it. You send your product to a hosting service, which gives it a public web address. This site says “put it online”.
Production
Production is the live version of your website or app that real people use. Changes there affect everyone, so you test them in a preview first.

Official pages

Updated · hCaptcha