Test the behavioral analysis demo below.
Integrate Null CAPTCHA into your own application in 4 simple steps:
Add this script tag in your HTML <head> or body:
<script src="https://null.dill.moe/js/null.js" async defer></script>
Place a placeholder div where you want the captcha widget to render:
<div id="null-captcha-widget"></div>
Initialize the captcha in JavaScript once the script loads:
window.addEventListener('load', () => {
window.NullCaptcha.render('null-captcha-widget', {
onSuccess: (token) => {
// Verification succeeded! Send token to your backend
console.log("Verified. Token:", token);
},
onFailure: (err) => {
console.error("Verification failed:", err);
}
});
});
From your server, verify the token by making a POST request:
// Request
POST https://null.dill.moe/api/validate
Content-Type: application/json
{ "token": "timestamp.score.nonce.signature" }
// Success Response
{ "success": true, "score": 1.0 }