Vercel BotID
This flow applies when a site is protected by Kasada through Vercel BotID. You can identify this by the presence of the `x-is-human` header on requests to protected endpoints.
Overview
Step 1: Fetch the c.js Script
https://www.example.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=www.example.comStep 2: Generate the x-is-human Header via API
header, err := session.GenerateBotIDHeader(ctx, &hyper.BotIDHeaderInput{
Script: scriptBody,
UserAgent: "your-user-agent",
IP: "your-proxy-ip",
AcceptLanguage: "en-US,en;q=0.9",
})
if err != nil {
// Handle the error
}
// header is ready to use as x-is-human valuefrom hyper_sdk import BotIDHeaderInput
header = session.generate_botid_header(BotIDHeaderInput(
script=script_body,
user_agent="your-user-agent",
ip="your-proxy-ip",
accept_language="en-US,en;q=0.9",
))import { BotIDHeaderInput, generateBotIDHeader } from 'hyper-sdk-js';
const header = await generateBotIDHeader(session, new BotIDHeaderInput({
script: scriptBody,
userAgent: "your-user-agent",
ip: "your-proxy-ip",
acceptLanguage: "en-US,en;q=0.9",
}));Step 3: Making Requests to Protected Endpoints
When to Re-generate the Header
Summary
Last updated

