Keep bots and AI agents out of your forms
Able AI Captcha is a quick human check for sign-ins, sign-ups and contact forms. It watches how a real person presses, taps and types, and it is built to catch the automated browsers and AI agents that walk straight past older checks.
Made for today’s bots
Every step is created and checked on our servers. Your visitor’s browser never learns the answer, the score or the rules, so a clever script has nothing to copy.
Easy for people
Usually one or two short steps, like pressing and holding a button. It works on phones and desktops, with no account and no tracking cookies.
Two lines to install
Paste a snippet into your form, then confirm the result from your server. Works with plain HTML, any backend, and WordPress.
Get started
- Get your site key (public, goes in your page) and secret key (private, stays on your server). Each key works only on the domains you list.
- Add the widget inside your form:
<div class="able-captcha" data-sitekey="YOUR_SITE_KEY"></div>
<script src="https://aicaptcha.ableadmins.com/api.js" async defer></script>When the visitor passes, the widget adds a hidden field named able-captcha-response to the form. A full example:
<form action="/login" method="post">
<input name="email" type="email" required>
<input name="password" type="password" required>
<div class="able-captcha" data-sitekey="YOUR_SITE_KEY" data-action="login"></div>
<button type="submit">Sign in</button>
</form>
<script src="https://aicaptcha.ableadmins.com/api.js" async defer></script>Then check that token from your server before you accept the form (below). A token works once and expires after 5 minutes.
Check the result on your server
Send a POST to https://aicaptcha.ableadmins.com/siteverify with:
| Field | What it is | |
|---|---|---|
secret | required | Your secret key |
response | required | The able-captcha-response value from the form |
remoteip | optional | The visitor’s IP. We reply with remoteip_match so you can spot a token used from another address. |
hostname | optional | If set, the check fails unless the token came from this hostname |
action | optional | If set, must match the widget’s data-action |
Form-encoded or JSON both work. A passing reply:
{
"success": true,
"score": 0.86,
"hostname": "www.example.com",
"action": "login",
"challenge_ts": "2026-11-23T07:00:00+00:00",
"error-codes": []
}When success is false, error-codes says why: missing-input-secret, invalid-input-secret, missing-input-response, invalid-input-response, timeout-or-duplicate, hostname-mismatch, action-mismatch or rate-limited.
PHP
<?php
// On your server, after the form is posted
$token = $_POST['able-captcha-response'] ?? '';
$ch = curl_init('https://aicaptcha.ableadmins.com/siteverify');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 5,
CURLOPT_POSTFIELDS => http_build_query([
'secret' => getenv('YOUR_SECRET_SETTING'), // keep it on the server
'response' => $token,
'remoteip' => $_SERVER['REMOTE_ADDR'],
'hostname' => 'www.example.com', // optional: must match
]),
]);
$raw = curl_exec($ch);
$result = $raw ? json_decode($raw, true) : null;
if (!$result || empty($result['success'])) {
http_response_code(403);
exit('Please complete the verification and try again.');
}
// Passed: continue with sign-inNode / Express
// Node 18+ / Express
app.post('/login', express.urlencoded({ extended: false }), async (req, res) => {
const body = new URLSearchParams({
secret: process.env.YOUR_SECRET_SETTING,
response: req.body['able-captcha-response'] || '',
remoteip: req.ip,
});
const r = await fetch('https://aicaptcha.ableadmins.com/siteverify', { method: 'POST', body });
const result = await r.json();
if (!result.success) return res.status(403).send('Please complete the verification.');
// Passed: continue with sign-in
});Python / Flask
# Python / Flask
import os, requests
from flask import request, abort
@app.post("/login")
def login():
r = requests.post("https://aicaptcha.ableadmins.com/siteverify", data={
"secret": os.environ["YOUR_SECRET_SETTING"],
"response": request.form.get("able-captcha-response", ""),
"remoteip": request.remote_addr,
}, timeout=5)
if not r.json().get("success"):
abort(403)
# Passed: continue with sign-incurl
curl -s https://aicaptcha.ableadmins.com/siteverify \
-d secret=YOUR_SECRET_KEY \
-d response=TOKEN_FROM_THE_FORMIf our service can’t be reached
Decide ahead of time what your form should do if the check times out: fail closed (refuse the form, safest for sign-ins) or fail open (accept it and log it, gentler for contact forms). Use a short timeout, around 5 seconds.
JavaScript options
Attributes on the able-captcha element: data-sitekey, data-action, data-callback, data-expired-callback, data-error-callback, data-response-field-name. For single-page apps, render it yourself:
<div id="captcha"></div>
<script>
function onAbleReady() {
window.widgetId = ableCaptcha.render('#captcha', {
sitekey: 'YOUR_SITE_KEY',
action: 'signup',
callback: function (token) { /* enable your submit button */ },
'expired-callback': function () { /* token timed out; it reloads itself */ },
'error-callback': function () { /* show a friendly message */ }
});
}
</script>
<script src="https://aicaptcha.ableadmins.com/api.js?onload=onAbleReady&render=explicit" async defer></script>Also available: ableCaptcha.getResponse(id), ableCaptcha.reset(id) and ableCaptcha.remove(id).
If your site sends a Content-Security-Policy, allow us with:
script-src https://aicaptcha.ableadmins.com; frame-src https://aicaptcha.ableadmins.comWordPress
Our plugin protects the login, registration, lost-password and comment forms, plus WooCommerce sign-in, registration and checkout, Contact Form 7 and WPForms when they’re installed. Paste your two keys in Settings → Able AI Captcha and you’re done.
Hand-coding a form instead?
// Prefer the plugin. If you hand-code a theme form instead:
$r = wp_remote_post('https://aicaptcha.ableadmins.com/siteverify', [
'timeout' => 5,
'body' => [
'secret' => get_option('my_able_captcha_secret'),
'response' => sanitize_text_field(wp_unslash($_POST['able-captcha-response'] ?? '')),
'remoteip' => $_SERVER['REMOTE_ADDR'] ?? '',
],
]);
$ok = !is_wp_error($r) && !empty(json_decode(wp_remote_retrieve_body($r), true)['success']);How it keeps you safe
- The challenge runs in its own isolated frame. Your page, and any script on it, can’t read or click inside it.
- Questions, answers and scoring live only on our servers. The browser just shows the step and sends back what the visitor did.
- Tokens are random, single-use, short-lived, and tied to your site key and the hostname that showed the widget.
- Your secret key is never sent to browsers, and we store only a fingerprint of it.
- Limits per visitor and per site key slow down anyone hammering your forms.