WebGPU Fingerprinting: GPU Signals and Protection
Keep WebGPU adapter behavior aligned with the selected browser profile.
Prerequisites
- BotBrowser installed. See Installation Guide.
- A profile file (
.encfor production).
Overview
WebGPU is a modern graphics API that can expose GPU adapter family, capability limits, feature support, and rendering behavior. These properties can become a fingerprint surface because they vary by hardware, driver, operating system, and browser profile.
BotBrowser keeps WebGPU behavior aligned with the selected profile so a browser identity does not expose the host GPU by accident.
Quick Start
# Default: use profile-defined WebGPU values (recommended)
chromium-browser \
--bot-profile="path/to/profile.enc" \
--user-data-dir="$(mktemp -d)"By default, BotBrowser uses the profile’s WebGPU adapter data. No extra flags needed.
Configuration
The --bot-webgpu flag controls WebGPU behavior:
| Value | Behavior |
|---|---|
profile (default) | Return profile-defined adapter information. GPU probes see the target device’s values regardless of the host hardware. |
real | Use the host system’s actual GPU. Useful when you need native GPU performance and don’t need WebGPU fingerprint protection. |
disabled | Disable WebGPU entirely. navigator.gpu.requestAdapter() returns null. |
# Use profile GPU identity (default)
chromium-browser \
--bot-profile="path/to/profile.enc" \
--bot-webgpu=profile
# Use host GPU directly
chromium-browser \
--bot-profile="path/to/profile.enc" \
--bot-webgpu=real
# Disable WebGPU
chromium-browser \
--bot-profile="path/to/profile.enc" \
--bot-webgpu=disabledIn profile mode, adapter limits and features come from the active BrowserContext’s profile. Requests made through requestDevice() are checked against that profile’s declared limits and features. A value outside the profile claim is rejected. A claimed capability that the host cannot provide is withheld from the device request rather than being reported as usable.
Use real when the host adapter should be returned without profile-backed capability claims. Use disabled when page code should not see the WebGPU entry point at all. Apply the mode before the context creates its first page.
On software-rendered hosts, profile mode also provides the backing needed by the capabilities it reports. Texture format tiers, rendering, blending, multisample resolve, and Canvas readback remain usable within the active context’s declared capability policy. real keeps the host backend and does not add profile-only software support. Disabling GPU emulation returns host support to the native path while leaving the selected profile mode’s capability policy unchanged.
Common Scenarios
Cross-platform consistency
Run a Windows profile on a Linux server. The WebGPU adapter reports the profile’s GPU identity, not the host’s:
const browser = await chromium.launch({
executablePath: process.env.BOTBROWSER_EXEC_PATH,
headless: true,
args: [
"--bot-profile=path/to/win-profile.enc",
],
});
const page = await browser.newPage();
const adapter = await page.evaluate(async () => {
const gpu = navigator.gpu;
if (!gpu) return null;
const adapter = await gpu.requestAdapter();
if (!adapter) return null;
const info = await adapter.requestAdapterInfo();
return { vendor: info.vendor, architecture: info.architecture };
});
console.log(adapter); // Profile's GPU, not host's
await browser.close();Disable WebGPU for lightweight tasks
If your workload does not require WebGPU, disable it to reduce resource usage:
chromium-browser \
--bot-profile="path/to/profile.enc" \
--bot-webgpu=disabled \
--user-data-dir="$(mktemp -d)"Troubleshooting / FAQ
| Problem | Solution |
|---|---|
requestAdapter() returns null | On headless Linux servers, ensure GPU emulation is active (default). If you set --bot-gpu-emulation=false, use --use-angle=gl with libgl1-mesa-dri installed so ANGLE picks up Mesa llvmpipe. Do not add --disable-gpu: it disables WebGPU adapter discovery on current Chromium. Full backend matrix in Linux GPU Backend Selection. |
| WebGPU shows host GPU info | Check that --bot-webgpu is set to profile (default) and not real. |
requestDevice() rejects a limit that the page requested | Compare the request with the active profile’s declared limit. In profile mode, the profile claim is the upper bound even when the host can provide more. |
| One context sees another context’s adapter limits | Set --bot-webgpu in each context’s botbrowserFlags before its first page is created. WebGPU claims are per-context. |
| High CPU during WebGPU operations | Expected on software-rendered environments. See Linux GPU Backend Selection for CPU behavior across SwiftShader, Mesa llvmpipe, and lavapipe. |
Next Steps
- WebGL Fingerprint Protection. Control WebGL parameters and rendering consistency.
- Canvas Fingerprint Protection. Deterministic noise for Canvas 2D rendering.
- Linux GPU Backend Selection. Pick and migrate between Mesa llvmpipe, SwiftShader, and lavapipe software rendering backends on Linux servers.
- Performance Optimization. General performance tuning for production workloads.
--bot-webgpu. CLI values and availability.
Related documentation: Advanced Features | CLI Flags
Legal Disclaimer & Terms of Use • Responsible Use Guidelines. BotBrowser is for authorized fingerprint protection and privacy research only.
Related BotBrowser blog: WebGPU fingerprinting and GPU tracking | Recovering from WebGPU device loss