Skip to main content

Client-side JavaScript Agent

The JS agent runs on clients running JavaScript, running various tests and collecting data from the environment that improves threat detection and visitor categorisation.

The data collected makes it easier to detect automated scripts and browsers such as headless chrome and puppeteer stealth.

We highly recommend serving the agent along with any HTML content to enhance the effectiveness of bot detection and management with VerifiedVisitors.

Setup

Embed the following snippet in your <head> element:

<link rel="preconnect" href="https://resources.verifiedvisitors.com" />
<link rel="preconnect" href="https://api.verifiedvisitors.com" />
<script async src="https://resources.verifiedvisitors.com/vvfp.min.js"></script>
note

This is done automatically by the Cloudflare worker implementation.

Content-Security-Policy

If your site uses Content-Security-Policy (CSP), make sure the following directives are set:

connect-src https://api.verifiedvisitors.com
script-src https://resources.verifiedvisitors.com
worker-src blob:
style-src 'unsafe-inline'