惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
博客园 - 三生石上(FineUI控件)
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
罗磊的独立博客
博客园_首页
量子位
雷峰网
雷峰网
GbyAI
GbyAI
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Cloudflare Blog
IT之家
IT之家
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Apify Fingerprint Suite: Open-Source Browser Fingerprinti...
pickuma · 2026-05-20 · via DEV Community

You launch a headless Chrome instance, point it at a target site, and the first response is a 403 or a CAPTCHA. The IP is residential. The user-agent string looks like a normal Chrome. The block still lands. The signal that gave you away is usually the fingerprint — the cluster of browser properties an anti-bot service reads before it ever evaluates how you click or scroll.

Apify's fingerprint-suite is an MIT-licensed, TypeScript toolkit that generates realistic browser fingerprints and injects them into Playwright or Puppeteer. We went through how it builds those fingerprints, how you wire it in, and where it stops being the answer.

How fingerprinting flags your scraper

A fingerprint is not one value. An anti-bot service assembles it from dozens of signals the browser exposes: navigator.userAgent, navigator.platform, navigator.hardwareConcurrency, navigator.deviceMemory, the list of declared languages, screen and window dimensions, the WebGL vendor and renderer strings, audio-context output, available fonts, and the order and casing of the HTTP headers themselves.

A default headless browser leaks on several of these at once. navigator.webdriver reads true. The user-agent can carry a HeadlessChrome token. Viewports default to a small fixed size. Header order differs from what the same browser sends when a person drives it.

The harder problem is consistency. Spoofing a single value is easy — you can set any user-agent string you want. But if you announce Safari on macOS while WebGL reports an ANGLE (NVIDIA...) renderer string that only appears on Windows, the contradiction is the detection. Anti-bot models are trained on how real fingerprints co-occur, so an attribute that is individually plausible but inconsistent with its neighbors is what trips the flag.

What the suite generates and injects

The toolkit splits the job into two packages. fingerprint-generator builds a fingerprint; fingerprint-injector applies it to a browser context.

The generator is backed by a Bayesian network — the generative-bayesian-network package — fitted on a corpus of real browser fingerprints. Instead of stitching values together at random, it samples a fingerprint where each attribute is conditioned on the others. Ask it for Chrome on Windows and you get Windows-plausible screen resolutions, font lists, and WebGL strings, not a grab-bag that no real machine would produce.

It generates matching HTTP headers in the same pass, through the header-generator package. That covers header names, their order, and values consistent with the browser and OS you requested — header order being a fingerprint signal in its own right. You can constrain generation by browser, operating system, device type, browser version range, and locale.

fingerprint-injector then overrides the JavaScript-visible surface inside the page: navigator properties, declared languages, screen and window geometry, WebGL vendor and renderer, supported codecs, and the navigator.webdriver flag. The fingerprint and its headers travel together, so what the page reads in JavaScript lines up with what the server saw in the request.

A consistent fingerprint does not fix a burned IP. Anti-bot services weigh IP reputation, request rate, and behavior alongside the fingerprint. Running a flawless fingerprint from a datacenter IP that is already on a blocklist still gets you blocked — pair the suite with clean proxies and reasonable pacing, not as a replacement for them.

Wiring it into Playwright and Puppeteer

For Playwright, the suite ships a newInjectedContext helper that creates a browser context with a fresh fingerprint already applied:


const browser = await chromium.launch();
const context = await newInjectedContext(browser, {
  fingerprintOptions: {
    devices: ['desktop'],
    operatingSystems: ['windows'],
  },
});

const page = await context.newPage();
await page.goto('https://example.com');

Enter fullscreen mode Exit fullscreen mode

Every page opened from that context inherits the same fingerprint and header set. For Puppeteer, the FingerprintInjector class exposes attachFingerprintToPuppeteer to apply a generated fingerprint to a page.

If you already run Crawlee — Apify's scraping library — you are using this stack without wiring anything: Crawlee generates and injects fingerprints by default. The standalone packages matter when you drive Playwright or Puppeteer directly and want the same treatment.

Building and tuning a scraper is tight iteration — adjust the fingerprint options, rerun, read the block response, adjust again. An AI-assisted editor keeps that loop short.

When to reach for it in an AI data pipeline

If your pipeline feeds an LLM — scraping training or evaluation data, ingesting pages for retrieval, monitoring prices or competitors, or backing an agent that browses — the fingerprint suite earns its place when you are driving a real browser against a site with active anti-bot defenses or heavy client-side rendering.

It is the wrong tool when you do not need a browser at all. If the target exposes a public API or serves static HTML, a plain HTTP request is faster, cheaper, and harder to flag than a headless browser with an injected fingerprint. Reach for fingerprinting because JavaScript execution forced you into a browser — not by default.

Two more limits worth setting expectations on. The suite addresses the fingerprint layer only; CAPTCHA solving, IP rotation, and human-like interaction are separate problems you still have to handle. And the model is trained on a fingerprint corpus, so its realism tracks how current that corpus stays against the browser versions running in the wild today.


Originally published at pickuma.com. Subscribe to the RSS or follow @pickuma.bsky.social for new reviews.