Zum Inhalt springen

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Migrating from hCaptcha

This guide walks you through migrating from hCaptcha to ALTCHA Sentinel, a lightweight and privacy-respecting alternative designed for modern web applications that value user experience and data sovereignty.

Why Switch?

While hCaptcha is often preferred over reCAPTCHA for privacy, it still relies on third-party hosting and manual visual puzzles that can frustrate users. ALTCHA provides a self-hosted, automated challenge that respects user privacy without sacrificing security.

Key Differences

FeaturehCaptchaALTCHA Sentinel
User ExperienceVisual puzzles, user interactionFrictionless PoW (Proof-of-Work)
ImplementationThird-party hostedSelf-hosted
PrivacyShares data with external providersZero tracking, privacy-focused
AccessibilityCan present barriers (visual tasks)Fully WCAG-compliant
ComplianceRequires vendor data evaluationGDPR, CCPA, HIPAA, LGPD, & PIPL compliant
VerificationServer-to-hCaptcha API callFast, local cryptographic verification
LimitsUsage-based tiersUnlimited usage

Implementation Comparison

Previous Implementation (hCaptcha)

Typically, hCaptcha requires an external script and a remote verification POST request.

Frontend: Required an external script from hcaptcha.com and a widget element that often triggered manual image-labeling tasks for users.

Backend: Relied on a remote API call to hcaptcha.com/siteverify to validate the h-captcha-response token using a secret key.

New Implementation (ALTCHA)

ALTCHA integrates directly into your app, keeping the verification process local and fast.

Frontend: Include the package and add the widget to your form.

import "altcha";
<form action="/submit" method="post">
<altcha-widget
challenge="https://your-challenge-url">
</altcha-widget>
<button type="submit">Submit</button>
</form>

For a deep dive into customization, see the Widget Integration guide.

Backend: Verification is performed locally using your server-side secret, removing the need for an external API round-trip to Google.

Learn more about validating payloads in the Server Integration guide.

Migration Steps

  1. Remove hCaptcha Dependencies

    • Remove the js.hcaptcha.com script and .h-captcha div elements.
    • Delete hCaptcha secret keys from your configuration.
  2. Deploy ALTCHA Sentinel

  3. Update Frontend

  4. Switch to Local Verification

Benefits After Migration

  • Ownership: No reliance on third-party service uptime or vendor changes.
  • Speed: Instant local verification avoids the latency of external API calls.
  • User Retention: Frictionless challenges mean fewer users abandon your forms.

Resources