What is the Vercel Security Checkpoint and how to recognise it
The Vercel Security Checkpoint is the interstitial page Vercel serves in front of sites that sit behind Vercel Firewall or Attack Mode. A visitor has to complete a security challenge before the site loads, while known bots such as search engines and webhooks pass through. Which sites and routes show it is the site owner's choice, so it can appear on one route and not on the next.
Do not confuse it with Vercel BotID. BotID is an invisible, client-side challenge that a site validates on its own server for sensitive routes, and it shows no page at all. The checkpoint is the visible interstitial, and the _vcrcs cookie addresses only that one. If a route is also gated by BotID, clearing the checkpoint may not be enough.
Solving the checkpoint gives you the _vcrcs cookie value, a JWT-shaped string. It is meant to be replayed on the protected origin, not typed into a form.
Which URL, worker script and proxy to send
There is no sitekey for this type. Send the full page URL that shows the checkpoint, its challenge worker URL as scriptUrl, and proxy details.
Proxy details, scriptUrl and userAgent are required. The supported worker is exactly <origin>/.well-known/vercel/security/static/challenge.v2.min.js, on the HTTPS origin of websiteURL, without a query string or fragment. Other worker versions and cross-origin URLs are rejected before charging. Copy the URL from the checkpoint's requests instead of guessing it.
Vercel itself says Attack Mode challenges all traffic initiated by web browsers, API traffic included, and that standalone APIs and non-browser clients may not be able to pass challenges and could be blocked. If a script that calls a Vercel-hosted API gets blocked, this is the likely reason.
Where the cookies go
Set solution._vcrcs as the _vcrcs cookie on the target origin. Apply any additional name-to-value entries in solution.cookies, then request the protected page or API from that session.
The checkpoint ties _vcrcs to the browser that solved it, so replay with the userAgent you sent in the task and through the same proxy. Vercel does not publish how long the cookie lasts: when the checkpoint shows up again, solve again.
Common mistakes
The first mistake is solving the wrong product. BotID is invisible and checked by the site's own server; the checkpoint is the visible interstitial. A _vcrcs cookie does not help against BotID.
The second is creating a task without proxy details. This type requires a proxy. The third is replaying from a different network or with a different user agent than the solve used; the binding is not documented, so keeping them the same is the cautious choice.
Finally, do not assume the checkpoint is everywhere on a site. Site owners can challenge arbitrary traffic with firewall rules, so a URL that is challenged today may not be tomorrow. Send the exact URL that shows the checkpoint, and confirm it is there before you create a task: a task is charged when it is accepted, and a task that finishes as failed automatically returns its original charge once.
Solve it with SurSolver
Send the challenged page URL, challenge worker scriptUrl, your proxy details and the userAgent you will replay with to createTask with the task type VercelCookie, then poll getTaskResult until the status is ready. _vcrcs carries the cookie value. The accepted names and parameters are listed by the public catalog (GET /v1/task-types).
The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints _vcrcs. Set it on the origin with the task's user agent through the same proxy. The Playwright tab launches Chromium through that proxy, solves for the challenged URL, sets _vcrcs on the origin with the task's user agent and waits for the protected page.
import { SurSolver, TaskType } from 'sursolver';
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
const client = new SurSolver(API_KEY);
const { solution } = await client.solve({
type: TaskType.VercelCookie,
websiteURL: 'https://example.com/login',
scriptUrl: 'https://example.com/.well-known/vercel/security/static/challenge.v2.min.js',
userAgent: USER_AGENT,
proxy: 'http://user:password@203.0.113.10:8000',
});
console.log(solution._vcrcs);
from sursolver import SurSolver, TaskType
API_KEY = "YOUR_API_KEY"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": TaskType.VercelCookie,
"websiteURL": "https://example.com/login",
"scriptUrl": "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
"userAgent": USER_AGENT,
"proxy": "http://user:password@203.0.113.10:8000",
}
)
print(result.solution["_vcrcs"])
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": sursolver.TaskTypeVercelCookie,
"websiteURL": "https://example.com/login",
"scriptUrl": "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
"userAgent": UserAgent,
"proxy": "http://user:password@203.0.113.10:8000",
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution["_vcrcs"])
}
use serde_json::json;
use sursolver::{Client, task_types};
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": task_types::VERCEL_COOKIE,
"websiteURL": "https://example.com/login",
"scriptUrl": "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
"userAgent": USER_AGENT,
"proxy": "http://user:password@203.0.113.10:8000",
}))
.await?;
println!("{}", result.solution["_vcrcs"]);
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
use SurSolver\TaskTypes;
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => TaskTypes::VERCEL_COOKIE,
'websiteURL' => 'https://example.com/login',
'scriptUrl' => 'https://example.com/.well-known/vercel/security/static/challenge.v2.min.js',
'userAgent' => USER_AGENT,
'proxy' => 'http://user:password@203.0.113.10:8000',
]);
echo $result->solution['_vcrcs'];
require "sursolver"
API_KEY = "YOUR_API_KEY"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => SurSolver::TaskTypes::VERCEL_COOKIE,
"websiteURL" => "https://example.com/login",
"scriptUrl" => "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
"userAgent" => USER_AGENT,
"proxy" => "http://user:password@203.0.113.10:8000"
)
puts result.solution["_vcrcs"]
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import com.sursolver.TaskTypes;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", TaskTypes.VercelCookie,
"websiteURL", "https://example.com/login",
"scriptUrl", "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
"userAgent", USER_AGENT,
"proxy", "http://user:password@203.0.113.10:8000"));
System.out.println(result.solution().get("_vcrcs"));
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.VercelCookie,
["websiteURL"] = "https://example.com/login",
["scriptUrl"] = "https://example.com/.well-known/vercel/security/static/challenge.v2.min.js",
["userAgent"] = UserAgent,
["proxy"] = "http://user:password@203.0.113.10:8000",
});
Console.WriteLine(result.Solution["_vcrcs"]);
// vercel-playwright.js - solve Vercel Security Checkpoint and open the protected page with the
// _vcrcs cookie.
// Install: npm install playwright && npx playwright install chromium
// Run: node vercel-playwright.js
const { chromium } = require('playwright');
const { setTimeout: sleep } = require('node:timers/promises');
// Your SurSolver API key.
const CLIENT_KEY = 'sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// The challenged page, exactly as it shows the challenge.
const TARGET_URL = 'https://example.com/page';
// The proxy for the solve and the replay: http://user:pass@host:port or socks5://host:port.
const PROXY_URL = 'http://username:password@proxy.example.com:8080';
// Optional, read from the page when empty: the checkpoint worker, normally
// <origin>/.well-known/vercel/security/static/challenge.v2.min.js.
const SCRIPT_URL = '';
// The User-Agent the solve runs with; send the result with this same user agent.
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
// A selector that matches only after the site accepted the result.
const SUCCESS_SELECTOR = '.PASTE_ACCEPTED_SELECTOR';
const API = 'https://api.sursolver.com';
const POLL_ATTEMPTS = 60;
// API errors are HTTP 200 with errorId 1; anything else is a transport failure.
async function call(path, body) {
const res = await fetch(`${API}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.errorId !== 0) throw new Error(`${data.errorCode}: ${data.errorDescription}`);
return data;
}
async function solve(task) {
const created = await call('/createTask', { clientKey: CLIENT_KEY, task });
for (let attempt = 0; attempt < POLL_ATTEMPTS; attempt += 1) {
const result = await call('/getTaskResult', {
clientKey: CLIENT_KEY,
taskId: created.taskId,
});
if (result.status === 'ready') return result.solution;
await sleep(3000);
}
throw new Error(`task ${created.taskId} was not ready in ${POLL_ATTEMPTS} polls`);
}
// Optional task fields are sent only when they have a value.
function withoutEmpty(fields) {
return Object.fromEntries(
Object.entries(fields).filter(([, value]) => value !== undefined && value !== ''),
);
}
// A value the page did not show must be pasted into its constant at the top.
function need(name, value) {
if (value === undefined || value === null || value === '') {
throw new Error(`Could not read ${name} from the page; fill in the ${name} constant.`);
}
return value;
}
// Chromium takes the proxy as a server plus credentials rather than one URL.
// It cannot send credentials to a SOCKS5 proxy; use an http:// proxy for browser runs.
function proxyOption(proxyUrl) {
const url = new URL(proxyUrl);
return {
server: `${url.protocol}//${url.host}`,
...(url.username
? { username: decodeURIComponent(url.username), password: decodeURIComponent(url.password) }
: {}),
};
}
// Public cookies are a name-to-value object; apply them to the protected origin.
function browserCookies(cookies, url) {
return Object.entries(cookies).map(([name, value]) => ({
name, value, url: new URL(url).origin,
}));
}
// Opens the page once and reads what the solve needs from it.
async function readPage(browser) {
const page = await browser.newPage({ userAgent: USER_AGENT });
const requests = [];
page.on('request', (request) => requests.push(request));
try {
await page.goto(TARGET_URL, {
waitUntil: 'domcontentloaded',
timeout: 45000,
});
// Requests made after load count too; wait for them, but never hang on a busy page.
await page.waitForLoadState('networkidle', { timeout: 5000 })
.catch(() => undefined);
const urls = (matches) =>
[...new Set(requests.filter(matches).map((request) => request.url()))];
return {
pageUrl: page.url(),
scriptUrl: urls(
(request) => /\/\.well-known\/vercel\/security\/static\/challenge\.v\d+\.min\.js/.test(request.url())
)[0],
};
} finally {
await page.close();
}
}
async function main() {
const browser = await chromium.launch({ proxy: proxyOption(PROXY_URL) });
try {
const found = await readPage(browser);
const solution = await solve({
type: 'VercelCookie',
websiteURL: found.pageUrl,
scriptUrl: need('scriptUrl', SCRIPT_URL || found.scriptUrl),
userAgent: USER_AGENT,
proxy: PROXY_URL,
});
const cookies = {
...(solution.cookies ?? {}),
'_vcrcs': solution['_vcrcs'],
};
// Replay with the user agent the solve ran with, through the same proxy.
const context = await browser.newContext({ userAgent: USER_AGENT });
await context.addCookies(browserCookies(cookies, found.pageUrl));
const page = await context.newPage();
await page.goto(found.pageUrl, { waitUntil: 'domcontentloaded' });
await page.locator(SUCCESS_SELECTOR).first().waitFor({ timeout: 15000 });
console.log('The site served the protected page.');
} finally {
await browser.close();
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});