JA3 Fingerprint in Node.js: What You Can and Cannot Change

To read a JA3 fingerprint in Node.js, capture the ClientHello that your own code sends: run a small listener, connect to it with global fetch, https.request and tls.connect, and hash what arrives. On Windows 11 each client kept one JA3, the TLS options moved it without ever reaching the Chrome hash, and Chrome sent a new JA3 on every connection. Below are the listener, the numbers, a client that impersonates a browser, and where CapSkip enters: it solves the CAPTCHA you are served after the handshake passes and never changes a fingerprint.
What you need
- Node.js 20 or later: the impit package declares 20 in its engines field and the capskip package 1.8.0 declares 18. I ran the blocks on Node.js 20.11.1, 24.22.0 (OpenSSL 3.5.8) and 25.2.1, apart from the Chrome capture (24.22.0 only) and one block that needs 24, and none on 18.
- Install both packages with the command in step 1. On Windows impit loads a prebuilt binary from an optional package named impit-win32-x64-msvc. My install on npm 11.19.1 added three packages and printed no warning.
- Google Chrome on the same PC for the browser capture. I used 157.0.8103.78, headless, with a new profile per start.
- CapSkip 5.7.0 on a Windows PC for the last step, installed as the setup guide describes. No CapSkip server answered on 127.0.0.1:8080 while I wrote this, so every CapSkip result comes from a mock of in.php and res.php that I wrote.
- An address for CapSkip. In Local mode CapSkip answers only on 127.0.0.1. Server mode also accepts other machines on your network or a public IP, so the script may run elsewhere, as described in the connection settings section of the setup guide.
Every rule below that blocks or accepts a handshake is a mock rule of mine, standing in for whatever a real site does. I sent nothing to a real CAPTCHA site. Cloudflare documents JA3 and JA4, and JA4 is specified in the FoxIO repository. For the Python version, which swaps the library and reads a public echo, see the Python guide.
Step 1: read your own ClientHello
A TLS library parses the ClientHello and keeps it from you, so read the bytes before any TLS code runs. JA3 is the MD5 of five fields of the hello with GREASE values removed. JA4 sorts the ciphers and the extensions before hashing and adds the signature algorithms in sent order, so extension order does not matter to it.
# In PowerShell, in a new empty folder npm init -y npm install capskip impit
Save the next three blocks as one file named hello.mjs, in order. The listener needs no certificate, so every client below ends with a failed handshake.
// hello.mjs (part 1 of 3): read a ClientHello out of the raw bytes of the first TLS record.
import net from "node:net";
import { createHash } from "node:crypto";
const grease = (v) => (v & 0x0f0f) === 0x0a0a; // 0x0a0a, 0x1a1a ... 0xfafa
const u16 = (b, at) => b.readUInt16BE(at);
function parse(b) {
let p = 43; // 5 record header + 4 handshake header + 2 version + 32 random
p += 1 + b[p]; // session id
const n = u16(b, p);
p += 2;
const ciphers = [];
for (let i = 0; i < n; i += 2) ciphers.push(u16(b, p + i));
p += n;
p += 1 + b[p]; // compression methods
const end = p + 2 + u16(b, p);
p += 2;
const ext = []; // extension ids in wire order
const data = {};
while (p + 4 <= end) {
const id = u16(b, p);
const len = u16(b, p + 2);
ext.push(id);
data[id] = b.subarray(p + 4, p + 4 + len);
p += 4 + len;
}
const list = (id, skip) => {
const out = [];
const d = data[id];
if (d) for (let i = skip; i + 1 < d.length; i += 2) out.push(u16(d, i));
return out;
};
return {
version: u16(b, 9), ciphers, ext, sni: Boolean(data[0]),
groups: list(10, 2), sigalgs: list(13, 2), versions: list(43, 1),
points: data[11] ? [...data[11].subarray(1)] : [],
alpn: data[16] ? data[16].subarray(3, 3 + data[16][2]).toString() : "",
};
}// hello.mjs (part 2 of 3, same file): JA3 and JA4 from the parsed hello.
const md5 = (s) => createHash("md5").update(s).digest("hex");
const sha = (s) => createHash("sha256").update(s).digest("hex").slice(0, 12);
const hex = (v) => v.toString(16).padStart(4, "0");
const keep = (list) => list.filter((v) => !grease(v));
const two = (n) => String(Math.min(n, 99)).padStart(2, "0");
function fingerprints(h) {
const c = keep(h.ciphers);
const e = keep(h.ext);
// JA3: five fields, GREASE removed, extensions in the order they were sent
const ja3 = md5([h.version, c.join("-"), e.join("-"), keep(h.groups).join("-"), h.points.join("-")].join(","));
// JA4, as the FoxIO spec defines it: a_b_c
const top = Math.max(0, ...keep(h.versions)) || h.version;
const version = { 0x304: "13", 0x303: "12", 0x302: "11", 0x301: "10" }[top] || "00";
const alpn = h.alpn ? h.alpn[0] + h.alpn.at(-1) : "00"; // h2 or h1 (the spec has extra rules for odd values)
const a = `t${version}${h.sni ? "d" : "i"}${two(c.length)}${two(e.length)}${alpn}`;
const b = sha(c.map(hex).sort().join(",")); // ciphers sorted
const sorted = e.filter((v) => v !== 0 && v !== 16).map(hex).sort().join(","); // no SNI, no ALPN
const sig = keep(h.sigalgs).map(hex).join(","); // signature algorithms stay in sent order
return { ja3, ja4: `${a}_${b}_${sha(sig ? `${sorted}_${sig}` : sorted)}` };
}// hello.mjs (part 3 of 3, same file): listen, read the first record, report, close.
export function listen(port, onHello) {
const server = net.createServer((socket) => {
let buf = Buffer.alloc(0);
socket.on("error", () => {});
socket.on("data", (chunk) => {
buf = Buffer.concat([buf, chunk]);
if (buf.length < 5 || buf.length < 5 + u16(buf, 3)) return; // wait for the whole record
socket.destroy(); // no certificate here: the hello is all we need
onHello(fingerprints(parse(buf)));
});
});
return new Promise((resolve) => server.listen(port, "127.0.0.1", () => resolve(server)));
}Two checks. The JA4 specification publishes a worked example, and these blocks gave exactly its value from raw bytes: t13d1516h2_8daaf6152771_e5627efa2ab1. For JA3 I cross-checked three clients once against the public echo at tls.browserleaks.com (Node.js 24.22.0, curl 8.21.0 with Schannel): global fetch matched on JA3 and JA4, curl.exe matched once it trusted my test certificate, and impit matched on JA4 with a JA3 my listener had also recorded.
Save this as measure.mjs and run node measure.mjs to connect with the three clients that ship with Node.js.
// measure.mjs: start the listener, then connect with each built-in Node client five times.
import https from "node:https";
import tls from "node:tls";
import { listen } from "./hello.mjs";
const PORT = 12600;
const seen = [];
await listen(PORT, (fp) => seen.push(fp));
// Each client fails at the handshake, because the listener hangs up. That is fine.
const clients = {
"fetch": () => fetch(`https://localhost:${PORT}/`),
"https.request": () => new Promise((done) => https.get(`https://localhost:${PORT}/`, { agent: false }).on("error", done)),
"tls.connect": () => new Promise((done) => tls.connect({ host: "localhost", port: PORT }).on("error", done)),
};
for (const [name, connect] of Object.entries(clients)) {
const from = seen.length;
for (let i = 0; i < 5; i++) await connect().catch(() => {});
const mine = seen.slice(from);
const distinct = (key) => new Set(mine.map((fp) => fp[key])).size;
console.log(name.padEnd(14), `${mine.length} hellos, JA3 x${distinct("ja3")}, JA4 x${distinct("ja4")}`, mine[0].ja3, mine[0].ja4);
}
process.exit(0);Each client gave one JA3 and one JA4 over five connections (Windows 11, first 8 characters of each JA3).
| Client | JA3, Node.js 24.22.0 | JA4 part a, 24.22.0 | JA3, Node.js 20.11.1 | JA4 part a, 20.11.1 |
|---|---|---|---|---|
| Global fetch | d67b0948 | t13d5212h1 | 1a28e690 | t13d5911h1 |
| https.request | 944d1e18 | t13d521100 | 0cce74b0 | t13d591000 |
| tls.connect | e29263fb | t13i521000 | 6521bd74 | t13i590900 |
The three differ in two things Node.js leaves to the caller. Global fetch offers ALPN http/1.1 and the others offer none, and tls.connect sends no SNI unless you pass a servername. Without those, the cipher and extension blocks of the JA4 are identical across all three: b262b3658495 and 8e6e362c5eac on 24.22.0. Node.js 20.11.1 runs on OpenSSL 3.0.13 and offers 59 suites against 52, so one JA3 describes a client on one Node.js build, not "Node.js".
Step 2: see which options move which hash
The tls.connect options are the levers Node.js gives you, and https.request passes them through. Save this as knobs.mjs next to hello.mjs and run node knobs.mjs. It changes one option per connection and compares with the default.
// knobs.mjs: change one tls.connect option at a time and see which hash moves.
import tls from "node:tls";
import { constants } from "node:crypto";
import { listen } from "./hello.mjs";
const PORT = 12600;
const seen = [];
await listen(PORT, (fp) => seen.push(fp));
const reversed = tls.DEFAULT_CIPHERS.split(":").reverse().join(":");
const variants = {
"default": {},
"ciphers, reversed order": { ciphers: reversed },
"ciphers, one TLS 1.2 suite": { ciphers: "ECDHE-RSA-AES128-GCM-SHA256" },
"ecdhCurve P-256": { ecdhCurve: "P-256" },
"sigalgs, two entries": { sigalgs: "rsa_pss_rsae_sha256:ecdsa_secp256r1_sha256" },
"maxVersion TLSv1.2": { maxVersion: "TLSv1.2" },
"minVersion TLSv1.3": { minVersion: "TLSv1.3" },
"ALPNProtocols h2": { ALPNProtocols: ["h2", "http/1.1"] },
"SSL_OP_NO_TICKET": { secureOptions: constants.SSL_OP_NO_TICKET },
"requestOCSP": { requestOCSP: true },
"rejectUnauthorized false": { rejectUnauthorized: false },
"servername, another name": { servername: "example.test" },
};
const rows = [];
for (const [name, options] of Object.entries(variants)) {
const socket = tls.connect({ host: "localhost", servername: "localhost", port: PORT, ...options });
await new Promise((done) => socket.on("error", done));
rows.push([name, seen.at(-1)]);
}
const base = rows[0][1];
for (const [name, fp] of rows) {
const moved = [fp.ja3 !== base.ja3 && "JA3", fp.ja4 !== base.ja4 && "JA4"].filter(Boolean).join(" and ") || "nothing";
console.log(name.padEnd(28), "moves", moved.padEnd(12), fp.ja4);
}
process.exit(0);On Node.js 24.22.0, and the same on 25.2.1:
| Option | JA3 | JA4 | What changed in the hello |
|---|---|---|---|
| "ciphers", reversed order | moves | same | Order of the 52 suites only |
| "ciphers", one TLS 1.2 suite | moves | moves | 52 suites become 4 |
| ecdhCurve | moves | same | The groups list only |
| sigalgs | moves | moves | Signature list, and 52 suites fell to 44 |
| maxVersion TLSv1.2 | moves | moves | No TLS 1.3: 49 suites and 8 extensions |
| minVersion TLSv1.3 | moves | moves | Only the 3 TLS 1.3 suites, and no renegotiation_info extension |
| ALPNProtocols | moves | moves | Adds one extension, the first value gives h2 or h1 |
| secureOptions with SSL_OP_NO_TICKET | moves | moves | Drops the session ticket extension |
| requestOCSP | moves | moves | Adds the status request extension |
| rejectUnauthorized, the servername text | same | same | Certificate checks only |
Node.js 20.11.1 showed the same pattern, except that it threw ERR_CRYPTO_OPERATION_FAILED for the group X25519MLKEM768 in ecdhCurve, which 24.22.0 and 25.2.1 accepted. No option reordered the extensions, which kept the order OpenSSL chose, and options only removed or added some. None of them adds GREASE, encrypted client hello, ALPS or certificate compression.
Step 3: measure Chrome, then see how far options get you
Capture Chrome with the same code. Save this as watch.mjs and run node watch.mjs > hellos.txt in one window. The second block, in another PowerShell window, starts Chrome twelve times and counts the lines. Chrome retries after a hang-up, so each start gives several hellos.
// watch.mjs: print one line per ClientHello that reaches the listener.
import { listen } from "./hello.mjs";
await listen(12600, (fp) => console.log(fp.ja3, fp.ja4));
console.error("listening on 12600"); // stderr, so a redirect keeps only the hellos# Window 1: node watch.mjs > hellos.txt
# Window 2: twelve separate Chrome starts, then a count of what the listener saw.
$chrome = "C:\Program Files\Google\Chrome\Application\chrome.exe"
1..12 | ForEach-Object {
$profileDir = Join-Path $env:TEMP "ja3-profile-$_" # a new profile each time: no saved session
$p = Start-Process $chrome -ArgumentList "--headless=new", "--user-data-dir=$profileDir", "https://localhost:12600/" -PassThru
Start-Sleep -Seconds 4
taskkill /PID $p.Id /T /F | Out-Null
}
$hellos = Get-Content hellos.txt
$ja3 = $hellos | ForEach-Object { ($_ -split " ")[0] } | Sort-Object -Unique
$ja4 = $hellos | ForEach-Object { ($_ -split " ")[1] } | Sort-Object -Unique
"{0} hellos, {1} distinct JA3, {2} distinct JA4" -f $hellos.Count, $ja3.Count, $ja4.CountMy results on Windows 11 with Chrome 157.0.8103.78 installed, headless. The two harness rows use a harness with a full TLS answer, not shown here, and hello counts depend on the machine.
| Setup | Hellos | Different JA3 | Different JA4 |
|---|---|---|---|
| Twelve Chrome starts, block above (four runs on one machine) | 153 to 174 | 153 to 174, never a repeat | 1 each run |
| One Chrome, twelve requests to twelve new host names, my full harness | 12 | 12 | 1 |
| One Chrome, twelve requests to one host name, my full harness | 12 | 12 | 2 |
| Node.js 24.22.0 fetch, five connections | 5 | 1 | 1 |
Chrome never repeated a JA3 and Node.js never changed one. Each Chrome hello carried GREASE values in its cipher, extension, group and signature algorithm lists, which both hashes drop, and the same extensions in a new order, which is why JA3 changes and JA4 does not. The single host name gave a second JA4 because in my runs 10 or 11 of the 12 connections resumed a session and carried a pre-shared-key extension. Cloudflare says a resumed connection gets no new fingerprint, so never copy a JA4 from one.
A JA4 holds for one build, not for all of Chrome. The installed Chrome had 158.0.8127.37 staged for its next restart, so yours may differ. Twelve connections each, one JA4 per row:
| Client | JA4 |
|---|---|
| Chrome 157.0.8103.78, installed | t13d1517h2_8daaf6152771_cb7bf5808d99 |
| Chrome for Testing 157.0.8103.78, same version number, one extra extension (12e0) | t13d1518h2_8daaf6152771_4980c97edce0 |
| Chrome for Testing 149.0.7827.22 | t13d1517h2_8daaf6152771_dcad5a053991 |
| Chromium 145.0.7632.6, Playwright build | t13d1517h2_8daaf6152771_dcad5a053991 |
Can options alone build that hello? The next block sets everything I found that helps. It needs Node.js 24 or later, because 20.11.1 throws error:00000000:lib(0)::reason(0) on the sigalgs option. Stop watch.mjs with Ctrl+C first, as every later block listens on the same port.
// tuned.mjs: the closest hello that plain tls.connect options can build to Chrome.
import tls from "node:tls";
import { constants } from "node:crypto";
import { listen } from "./hello.mjs";
// Chrome cipher suites, in the order Chrome sends them (the first three are TLS 1.3).
const ciphers = [
"TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384", "TLS_CHACHA20_POLY1305_SHA256",
"ECDHE-ECDSA-AES128-GCM-SHA256", "ECDHE-RSA-AES128-GCM-SHA256",
"ECDHE-ECDSA-AES256-GCM-SHA384", "ECDHE-RSA-AES256-GCM-SHA384",
"ECDHE-ECDSA-CHACHA20-POLY1305", "ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-SHA", "ECDHE-RSA-AES256-SHA",
"AES128-GCM-SHA256", "AES256-GCM-SHA384", "AES128-SHA", "AES256-SHA",
].join(":");
const sigalgs = [
"mldsa44", "mldsa65", "mldsa87", "ecdsa_secp256r1_sha256", "rsa_pss_rsae_sha256",
"rsa_pkcs1_sha256", "ecdsa_secp384r1_sha384", "rsa_pss_rsae_sha384",
"rsa_pkcs1_sha384", "rsa_pss_rsae_sha512", "rsa_pkcs1_sha512",
].join(":");
let fp;
await listen(12600, (found) => (fp = found));
const socket = tls.connect({
host: "localhost", servername: "localhost", port: 12600,
ciphers,
sigalgs, // Node.js 24 and 25 accept the mldsa names, Node.js 20.11.1 refuses them
ecdhCurve: "X25519MLKEM768:X25519:P-256:P-384",
ALPNProtocols: ["h2", "http/1.1"],
secureOptions: constants.SSL_OP_NO_ENCRYPT_THEN_MAC, // drops one extension Chrome lacks
requestOCSP: true, // adds status_request, which Chrome sends
});
socket.on("error", () => {});
await new Promise((done) => socket.on("close", done));
console.log(fp.ja3, fp.ja4);
process.exit(0);On 24.22.0 and 25.2.1 this gave the same 15 suites in the same order as Chrome, the same groups and the same signature algorithms apart from GREASE, so the cipher block of its JA4 equals the Chrome one. It still lacked five extensions that no tls.connect option can add: signed certificate timestamp, certificate compression, ALPS, encrypted client hello and trust anchor IDs (id ca34). Its JA4 was t13d1512h2_8daaf6152771_480f8f85d31b against t13d1517h2_8daaf6152771_cb7bf5808d99. Those pieces are not on any cipher list, which is why editing that list never produces the Chrome hash.
Step 4: use a client that builds the hello itself
A client has to build its own hello to get closer. I tried one package, impit 0.14.9, which installed cleanly on Windows and whose README says it switches TLS fingerprints and headers behind the same API as fetch. Its types list profiles up to chrome151. The block makes a new client per connection, because one client reuses its connection.
// impit_hello.mjs: how steady is the impersonating client? A new Impit per connection.
import { Impit } from "impit";
import { listen } from "./hello.mjs";
const PORT = 12600;
const seen = [];
await listen(PORT, (fp) => seen.push(fp));
for (const browser of ["chrome", "chrome151"]) {
const from = seen.length;
for (let i = 0; i < 30; i++) {
// one Impit keeps its connection pool, so a fresh one makes a fresh handshake
await new Impit({ browser }).fetch(`https://localhost:${PORT}/`).catch(() => {});
}
const mine = seen.slice(from);
const distinct = (key) => new Set(mine.map((fp) => fp[key])).size;
console.log(browser.padEnd(10), `${mine.length} hellos, JA3 x${distinct("ja3")}, JA4 x${distinct("ja4")}`, mine[0].ja4);
}
process.exit(0);Against my listener, identical on Node.js 20.11.1, 24.22.0 and 25.2.1:
| impit setup | Clients | Different JA3 | Different JA4 |
|---|---|---|---|
| Profile chrome151 | 30 | 6 | 1 |
| Profile chrome151, longer run | 150 | 6 | 1 |
| Profile chrome | 30 | 2 | 1 |
| No browser option | 10 | 10 | 1 |
| Profile firefox | 10 | 1 | 1 |
The chrome151 profile sends the same 15 suites in the same order as Chrome 157, the same groups and signature algorithms, and speaks HTTP/2. It shuffles only a few extensions, so it makes six JA3 values where Chrome makes a new one each time. It sends two GREASE values against four in the cipher, extension and group lists, and impit 0.14.9 lacks ca34, so its JA4 was t13d1516h2_8daaf6152771_806a8c22fdea. The cipher block matched Chrome 157 and the rest did not, and the newest profile is 151 against my 157.
My mock site refuses any handshake whose JA3 is not on a short list. The list holds the six values of the chrome151 profile. Against the mock on Node.js 24.22.0:
| Client | GET of the page |
|---|---|
| Global fetch | 403, empty body |
| https.request | 403, empty body |
| curl.exe 8.21.0 | 403 |
| impit, profile firefox | 403, empty body |
| impit, profile chrome151 | 200 with the form |
A JA3 rule is the weak one. Mine had to hold every permutation the profile makes, and real Chrome would need a new entry per connection. With a JA4 rule of one entry the same client passed.
Step 5: solve the CAPTCHA you are served, with the same client
CapSkip solves the widget in its own browser and returns a token, and your client has to carry the token to the form. Save these three blocks as one file named signup.mjs, in order. The first block reads the sitekey from the data-sitekey attribute of the widget div, in the HTML that the impersonating client fetched. A widget that a script draws, untested here, needs another read.
// signup.mjs (part 1 of 3): one impersonating client for the page, the solve and the form post.
import { Impit } from "impit";
import { CapSkip, ApiException, NetworkException, TimeoutException, ValidationException } from "capskip";
const SITE = process.env.SITE || "https://example.com/";
const POST_WITH = process.env.POST_WITH || "impit"; // "fetch" shows the wrong way
// CapSkip listens on 8080 by default. In Server mode, use the address of the server as host.
const solver = new CapSkip({ host: "127.0.0.1", port: Number(process.env.CAPSKIP_PORT || 8080) });
// ignoreTlsErrors is on only for a test site with a self-signed certificate.
const client = new Impit({ browser: "chrome151", ignoreTlsErrors: process.env.SELF_SIGNED === "1" });
async function readSitekey() {
const page = await client.fetch(SITE);
const html = await page.text();
if (page.status === 403 && html === "") throw new Error("blocked before any HTML: check the handshake first");
const found = html.match(/data-sitekey=["']([^"']+)["']/);
if (!found) throw new Error(`no data-sitekey on the page (HTTP ${page.status})`);
return found[1];
}The form post leaves through the same client that fetched the page, with the Referer and Origin headers a browser would add, because global fetch sends neither. Change login and the email field to the action and field names of your own form.
// signup.mjs (part 2 of 3, same file): the form post goes out through the same client.
async function submit(token, email) {
const body = new URLSearchParams({ email, "g-recaptcha-response": token }).toString();
const headers = {
"content-type": "application/x-www-form-urlencoded",
referer: SITE,
origin: new URL(SITE).origin,
};
const send = POST_WITH === "fetch" ? fetch : (url, init) => client.fetch(url, init);
const res = await send(new URL("login", SITE), { method: "POST", headers, body });
return { status: res.status, text: await res.text() };
}The last block solves once, right before the form post. The call is recaptcha(sitekey, url, options) from capskip 1.8.0 and it resolves to an object with captchaId and code. The token is in result.code, for the g-recaptcha-response field.
// signup.mjs (part 3 of 3, same file): read the sitekey, solve once, post right away.
try {
const sitekey = await readSitekey();
const started = Date.now();
// recaptcha(sitekey, url, options): timeout is in seconds, the SDK default is 300.
const result = await solver.recaptcha(sitekey, SITE, { timeout: 120 });
console.log(`token of ${result.code.length} characters after ${((Date.now() - started) / 1000).toFixed(1)} s`);
console.log(await submit(result.code, "[email protected]")); // the token is single use
} catch (err) {
if (err instanceof ValidationException) console.log("refused before sending:", err.message);
else if (err instanceof ApiException) console.log("CapSkip answered:", err.message);
else if (err instanceof TimeoutException) console.log("no token in time:", err.message);
else if (err instanceof NetworkException) console.log("CapSkip not reachable:", err.message);
else console.log("failed:", err.message);
process.exitCode = 1;
}# PowerShell: name the page that shows the reCAPTCHA v2 form, then run the script $env:SITE = "https://example.com/signup" node signup.mjs
Against my mock of CapSkip on Node.js 24.22.0, with a mock solve time of 2 seconds, the token arrived 3.8 seconds after the call, because the SDK polls at growing intervals. The form post through impit got HTTP 200. With POST_WITH set to fetch the same flow got 403 and an empty body, because my rule refuses the handshake before it reads the form. My mock did not spend the token then, and a second form post through impit was accepted once and refused as a repeat. A real site may spend it on any form post that reaches it, so solve right before posting.
The recaptchaTimeout default is 300 seconds in the SDK source, and the timeout option, in seconds, replaces it. Against a mock that never answered, a timeout of 4 threw TimeoutException after 7.80 seconds and a timeout of 12 after 12.81, because the SDK tests the clock only after each sleep. A userAgent option for reCAPTCHA v2 is refused with ValidationException before anything is sent. A wrong sitekey or page address returned ApiException with ERROR_GOOGLEKEY or ERROR_PAGEURL from my mock, and the API documentation lists both for the real app.
FAQ
Will CapSkip alter the handshake my script sends?
No, and it cannot change a JA3 or a JA4. CapSkip solves the CAPTCHA you were served and hands you a token. The handshake of your form post belongs to your client.
Can the script run on another machine than CapSkip?
Yes. Server mode lets a Windows machine you control answer the API for other machines, so put its address in host. Once Server mode starts it accepts connections from any address, so a narrower allow rule restricts nothing. To keep out machines you do not expect, add a Windows Firewall block rule for their addresses. I did not try a second machine.
What does a matching handshake not fix?
Your IP address, which the CAPTCHA solver proxy guide covers, and bot-like behaviour after the handshake. A 403 with an empty body, as my mock sends, is a block with no widget in it, so CapSkip has nothing to solve there, and the CAPTCHA or block guide tells the two apart. I captured no HTTP/2 frames or header order and tested no real site.
If the page serves a challenge after the handshake passes, a flat-license unlimited captcha solver on your own PC turns it into a token, and a refused form post costs seconds and no fee. The reCAPTCHA v2 in Node.js guide covers that solve in more depth, and the Node.js CAPTCHA solver page lists the other types.
