Add Fraud Protection to an HTML Website
This guide walks you through installing Opportify Form Fraud Protection on a plain HTML website using vanilla JavaScript. No framework required. Once set up, every form submission is analyzed for fraud signals in real-time: bots, disposable emails, VPNs, and more.
Prerequisites
- Access to the Opportify Admin Console
- An HTML page with a form you can edit
How it works
Opportify's approach has two parts:
- The tracking script — loaded once in the page
<head>. It silently observes browser signals and injects two hidden values into each of your forms:opportifyToken(a per-session risk token) andopportifyFormUUID(the identifier of the matched form endpoint). - The submit endpoint — instead of POSTing to your own backend, your form sends data directly to
https://api.opportify.ai/intel/v1/submit/<endpoint-id>. Opportify analyzes the submission, stores the result, and returns a JSON response your page can act on.