Skip to main content

Get started in three steps

Just follow 3 steps and your website will be protected permanently.

Step 1: Add the JavaScript SDK to your HTML

<script src="https://hamutan86.pythonanywhere.com/nonstress/main.js"></script>

Step 2: Get the token in your frontend

const token = await nonstress.getToken();

Step 3: Verify the token in your backend

Check the full usage of verify api in API Reference.
let resp = await fetch("https://hamutan86.pythonanywhere.com/nonstress/api/verify", {
  method: "POST", 
  headers: {"content-type": "application/json"}, 
  body: JSON.stringify({token: token})
});
resp = await resp.json();
if (!resp.security.pass){
  return "blocked"
}
...