Altcha
ALTCHA widget provider for bot protection
About Altcha
ALTCHA is a privacy-focused, open-source CAPTCHA solution that uses proof-of-work challenges to verify users without tracking or cookies. It provides a lightweight alternative to traditional CAPTCHA services.
For more information, visit the official ALTCHA documentation.
Showcase
Usage
Altcha uses an endpoint prop instead of sitekey to specify the challenge URL endpoint for the CAPTCHA service.
import { Altcha } from "@better-captcha/react/provider/altcha";
<Altcha endpoint="https://example.com/api/v1/challenge" options={{}} />import { component$ } from "@builder.io/qwik";
import { Altcha } from "@better-captcha/qwik/provider/altcha";
export default component$(() => (
<Altcha endpoint="https://example.com/api/v1/challenge" options={{}} />
));import { Altcha } from "@better-captcha/solidjs/provider/altcha";
<Altcha endpoint="https://example.com/api/v1/challenge" options={{}} /><template>
<Altcha
endpoint="https://example.com/api/v1/challenge"
:options="{}"
/>
</template>
<script setup lang="ts">
import { Altcha } from "@better-captcha/vue/provider/altcha";
</script><script lang="ts">
import Altcha from "@better-captcha/svelte/provider/altcha";
</script>
<Altcha endpoint="https://example.com/api/v1/challenge" options={{}} />import { Altcha } from "@better-captcha/lit/provider/altcha";<altcha-captcha endpoint="https://example.com/api/v1/challenge"></altcha-captcha>Configuration
Provider Options
Prop
Type
Imperative Handle
Prop
Type
Altcha uses an endpoint prop instead of sitekey to specify the challenge URL endpoint for the CAPTCHA service. When using Sentinel for challenge generation, configure the widget with your Sentinel endpoint URL.
Best Practices
- Endpoint Configuration: Ensure your challenge endpoint is properly configured and accessible
- Proof-of-Work: Altcha uses client-side proof-of-work computation - ensure proper server-side validation
- Lightweight: Minimal bundle size (~30 kB GZIPped) compared to other CAPTCHA solutions
- Privacy-First: No tracking, cookies, or user data collection
- Open Source: Benefit from community contributions and transparency
- Secure Context: Requires HTTPS connection due to cryptographic API usage
- Internationalization: Supports 50+ languages with automatic language detection