Integration guide

Add Skynet's Bane to your site

One script on the page. One call on your server. The widget runs the check. Your backend confirms the token. How the check is decided stays on the server: multiple layered, server-side human signals, not a picture puzzle.

1. Embed the widget

The sitekey is public. The secret is not. Put only the sitekey in the page.

<form method="post" action="/login">
  <div
    class="skynets-bane"
    data-sitekey="your-sitekey"
    data-theme="auto"
    data-callback="onSkynetsBane"
  ></div>
  <button type="submit">Continue</button>
</form>
<script src="https://skynets-bane.whitebeardapps.com/v1/widget.js" async></script>
<script>
  function onSkynetsBane(token) {
    // The token is also written to an input named skynets-bane-response.
  }
</script>

Styles stay inside the widget, so they do not restyle your page. data-theme is auto, light, or dark. Pointer, touch, and a keyboard fallback are included. onSkynetsBane does not have to exist when the script loads. The widget calls that name when the check finishes, and writes the same token to an input named skynets-bane-response.

The footer shows the shield mark and the name Skynet's Bane next to the widget version. The mark and the name are a link to skynets-bane.whitebeardapps.com that opens in a new tab. Following that link does not submit the check.

You can also mount it from script:

SkynetsBane.render(document.querySelector('#gate'), {
  sitekey: 'your-sitekey',
  endpoint: 'https://skynets-bane.whitebeardapps.com',
  callback(token) {}
});

endpoint is the API origin. When you omit it, the widget uses the origin of widget.js.

2. Confirm the token on your server

Send the token from your backend. POST /v1/siteverify accepts JSON or a form body.

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

{
  "secret": "YOUR_SITE_SECRET",
  "response": "TOKEN_FROM_THE_FORM",
  "sitekey": "your-sitekey"
}

success means the token is signed, current, and unused. It does not, by itself, mean the visitor passed. Read verdict:

  • human — the check passed.
  • step-up — the check was not a clear pass. Ask for another factor if the action needs one.
  • bot — the check did not pass. success can still be true, because that flag is about the token.

You can also check a token locally with the public key at GET /.well-known/jwks.json. That check does not remember used tokens. Call /v1/siteverify when you want the single-use check.

3. Endpoints

Site servers normally call only /v1/siteverify. The widget calls the others.

Public HTTP API
MethodPathWho calls it
POST/v1/challengeWidget. Body includes sitekey.
POST/v1/challenge/armWidget, during a check.
POST/v1/challenge/revealWidget, during a check.
POST/v1/verifyWidget, to finish a check.
POST/v1/siteverifyYour server, to confirm the token.
GET/v1/widget.jsThe page, to load the embed.
GET/.well-known/jwks.jsonYour server, for a local token check.
POST/v1/registerThe registration form, after a passed check.

Register an application

Open Register, name the app, list the hostnames allowed to embed it, and complete the check. You receive a sitekey and a secret. Copy the secret then. It can't be shown again. The server keeps a hash of the secret, not the secret itself.

The built-in demo-sitekey works from this site. Every other sitekey has to belong to an enabled application, and the page origin has to match the hostnames you listed.

Availability

The demo, registration, the widget, and the verification API are available now for any site you operate. Published uptime and a finished commercial agreement are planned. Early embeds are covered by the Terms of Use.

Skynet's Bane

Version 0.5.0

A short human check for the sites you run, confirmed on your server.

Feedback & support