← Dashboard

Install D&N CAPTCHA

1. Create a website

Sign in, add the exact hostname (e.g. demo.dnnsitelaunch.com), and copy both keys. Your secret is shown only once.

2. Add the widget to your HTML form

<script src="https://captcha.dnnsitelaunch.com/widget.js" defer></script>
<form method="POST" action="/register">
  <div class="dnn-captcha" data-sitekey="YOUR_SITE_KEY"></div>
  <button type="submit">Register</button>
</form>

3. Verify on YOUR backend

Read the form field named dnn-captcha-response. From your server, send JSON to POST https://captcha.dnnsitelaunch.com/api/siteverify with secret and response. Require success=true AND hostname matching your registered hostname. Never put the secret in frontend JavaScript.

POST /api/siteverify
Content-Type: application/json

{"secret":"YOUR_SECRET_KEY","response":"TOKEN_FROM_FORM"}

Response: {"success":true,"hostname":"example.com"}

v3 modes

Set data-mode to checkbox, fullpage, invisible, or challenge. Set data-theme to light or dark and data-accent to a six-digit hex color. Checkbox starts a challenge on click; invisible requests a challenge immediately and is not true background bot detection. Fullpage displays an overlay but does not protect server content by itself. Every protected action must call /api/siteverify from its backend.

Important

Static HTML alone cannot securely protect a server action. If your SiteLaunch website is static, use a separate Worker endpoint to validate submissions. This arithmetic challenge is an integration demo, not strong bot protection. Use a mature CAPTCHA provider for high-risk production forms until stronger defenses are added.