Implementing Altcha CAPTCHA on HTML Websites

4 min read
Static Forms Team

Traditional CAPTCHA solutions often compromise user privacy by tracking visitors and requiring external dependencies. Altcha offers a revolutionary alternative - a privacy-first, self-hosted CAPTCHA that uses proof-of-work challenges instead of visual puzzles. In this comprehensive guide, we'll show you how to implement Altcha CAPTCHA on your HTML website.

What is Altcha CAPTCHA?

Altcha is a modern CAPTCHA alternative that prioritizes user privacy and provides a seamless experience. Unlike traditional solutions, Altcha:

  • No cookies or tracking - Fully GDPR compliant
  • Self-hosted - No external dependencies on Google or other services
  • Invisible verification - Users don't need to solve puzzles
  • Proof-of-work based - Uses computational challenges instead of visual recognition

Prerequisites

Before implementing Altcha, ensure you have:

  1. Paid plan - Altcha is available on Static Forms paid plans (Pro or Advanced)
  2. API key - Your Static Forms API key

Step 1: Configure Altcha in Your Account

First, set up Altcha in your Static Forms account:

  1. Navigate to your CAPTCHA settings
  2. Switch to the "Altcha" tab
  3. Generate your Altcha keys
  4. Configure difficulty and expiration settings
  5. Save your site key for frontend integration

Step 2: Simple HTML Form

Create a basic HTML form with Altcha:

HTML

That's it! Just add the script tag and the <altcha-widget> element. The widget handles everything automatically - no JavaScript needed!

Step 3: Optional Styling

Add some basic CSS to make it look better:

CSS

Step 4: Common Options (Optional)

You can customize the widget with these simple options:

HTML

Simple Color Customization

Change the widget colors to match your site:

CSS

That's It!

Your form now has Altcha CAPTCHA protection. The widget automatically:

  • ✅ Loads and verifies challenges
  • ✅ Handles all the complex cryptography
  • ✅ Sends the token with your form
  • ✅ Protects against spam and bots

Quick Troubleshooting

Widget not showing?

  • Make sure you included the script: <script src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js" type="module"></script>
  • Replace YOUR_API_KEY_HERE with your actual API key

Form not working?

Complete Working Example

Copy and paste this complete example:

HTML

Just replace YOUR_API_KEY_HERE with your actual API key and you're done!

Why Use Altcha?

  • Privacy-first - No tracking or cookies
  • User-friendly - No puzzles to solve
  • GDPR compliant - Built-in privacy protection
  • Easy to implement - Just 2 lines of code
  • Works everywhere - Modern browsers only

Need Help?

Conclusion

Altcha is the easiest way to add privacy-focused CAPTCHA to your forms. Just include the script, add the widget, and you're protected from spam while respecting your users' privacy.

Ready to get started? Upgrade to a paid plan today!