Sloxly Docs
OAuth Captcha Console

Invisible Captcha

Invisible mode verifies users without any visible challenge. The captcha runs automatically when the form is submitted.

Setup

Add data-mode="invisible" to the widget and use the data-callback attribute:

HTML
<script src="https://api.sloxly.com/v1/Captcha/api.js"></script>

<form id="myForm" method="POST">
    <input type="email" name="email" required>

    <div class="sloxly-captcha"
         data-sitekey="YOUR_KEY"
         data-mode="invisible"
         data-callback="onCaptchaDone"></div>

    <button type="submit">Submit</button>
</form>

<script>
function onCaptchaDone(token) {
    document.getElementById('myForm').submit();
}
</script>

How It Works

  1. User clicks "Submit" — the captcha intercepts the submission
  2. Captcha runs a background verification (no UI visible)
  3. On success, your callback function is called with the token
  4. Submit the form with the token included automatically
Invisible mode still requires server-side verification. The flow is identical; only the user experience changes.

When to Use

← PreviousServer Verification