Spam Protection

Keep unwanted submissions out of your inbox

Overview

Static Forms supports two types of spam protection:

reCAPTCHA

Google's popular CAPTCHA service. Free and widely trusted.

  • ✅ Industry standard
  • ✅ Multiple versions (v2, v3)
  • ⚠️ Requires Google account

ALTCHA

NEW

Privacy-first CAPTCHA alternative. No tracking or external dependencies.

  • ✅ Privacy-focused
  • ✅ No external accounts needed
  • ✅ Better user experience

ALTCHA Setup

Recommended

ALTCHA is a privacy-first, self-hosted CAPTCHA alternative that doesn't require any external accounts or API keys.

Step 1: Enable ALTCHA in Dashboard

  1. Go to your CAPTCHA settings
  2. Enable ALTCHA protection
  3. Save your settings

Step 2: Add ALTCHA to Your Form

<!DOCTYPE html>
<html>
<head>
  <script type="module" src="https://cdn.jsdelivr.net/npm/altcha/dist/altcha.min.js"></script>
</head>
<body>
  <form action="https://api.staticforms.xyz/submit" method="POST">
    <input type="hidden" name="apiKey" value="YOUR_API_KEY" />
    
    <!-- Your form fields -->
    <input type="text" name="name" required />
    <input type="email" name="email" required />
    <textarea name="message" required></textarea>
    
    <!-- ALTCHA Widget -->
    <altcha-widget
      challengeurl="https://api.staticforms.xyz/api/altcha/challenge"
      hidefooter="true"
    ></altcha-widget>
    
    <button type="submit">Send</button>
  </form>
</body>
</html>

💡 Learn More: Check out our detailed guides on implementing ALTCHA:

reCAPTCHA Setup

Google reCAPTCHA is a widely-used CAPTCHA service that protects your forms from automated spam.

Step 1: Get reCAPTCHA Keys

  1. Visit Google reCAPTCHA Admin
  2. Register your site and get your Site Key and Secret Key
  3. Choose reCAPTCHA v2 (Checkbox) or v3 (Invisible)

Step 2: Configure in Dashboard

  1. Go to your reCAPTCHA settings
  2. Enter your Site Key and Secret Key
  3. Enable reCAPTCHA verification
  4. Save your settings

Step 3: Add reCAPTCHA to Your Form

For reCAPTCHA v2:

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

<form action="https://api.staticforms.xyz/submit" method="POST">
  <input type="hidden" name="apiKey" value="YOUR_API_KEY" />
  
  <!-- Your form fields -->
  <input type="text" name="name" required />
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>
  
  <!-- reCAPTCHA Widget -->
  <div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY"></div>
  
  <button type="submit">Send</button>
</form>

Which Should You Choose?

FeatureALTCHAreCAPTCHA
Setup DifficultyEasyModerate
External Account RequiredNoYes (Google)
PrivacyExcellentGood
User ExperienceSmoothCan be intrusive
EffectivenessExcellentExcellent

🎯 Recommendation: We recommend ALTCHA for most use cases due to its ease of setup, privacy benefits, and excellent user experience.