Stealth Mode
Setting a stealth mode
Stealth mode helps to reduce bot detection on sites, we're continuously updating our software to decrease detection and make the browser behavior closer to real users.
Stealth mode is enabled by default, but you can set the mode which may work better for you depending on what automation task you are solving and what site you are parsing
There are several stealth modes:
off
- Disables all plugins for stealth browser workstealth
- Uses a standard stealth mode for Puppeteer (default)stealth-v2
- Uses a specially patched version of the Puppeteer version which removes the typical behavior of automation software that can be detected by JS scripts on the site. This mode passes the most popular bot detectors like fingerpring.com, browserscan.net and others.
Parameter | Available values | Description |
---|---|---|
stealthMode | off , stealth (default), stealth-v2 | Stealth mode |
- Puppeteer
- Playwright
- REST APIs
import puppeteer from "puppeteer-core";
const browser = await puppeteer.connect({
browserWSEndpoint: `wss://chrome-v2.browsercloud.io?token=API_TOKEN&stealthMode=stealth-v2`,
});
// ...
import playwright from "playwright";
const browser = await playwright.chromium.connectOverCDP(
`wss://chrome-v2.browsercloud.io?token=API_TOKEN&stealthMode=stealth-v2`
);
// ...
curl --location 'https://chrome-v2.browsercloud.io/content?token=API_TOKEN&stealthMode=stealth-v2&&url=https://api.myip.com'
Device Fingerprint
A device fingerprint is an extensive collection of data gathered from a device including cookies, headers, operating system versions, graphics card information, and many other elements. Browsercloud randomizes this data for each request, ensuring that every visit appears unique to the server.
By default, Browsecloud uses fingerprints of real Windows OS for desktop devices. You can set another os listed below:
Parameter | Available values | Description |
---|---|---|
os | windows , macos , linux , android , ios .off - to disable fingerprints | OS fingerprint |
- Puppeteer
- Playwright
- REST APIs
import puppeteer from "puppeteer-core";
const browser = await puppeteer.connect({
browserWSEndpoint: `wss://chrome-v2.browsercloud.io?token=API_TOKEN&os=ios`,
});
// ...
import playwright from "playwright";
const browser = await playwright.chromium.connectOverCDP(
`wss://chrome-v2.browsercloud.io?token=API_TOKEN&os=ios`
);
// ...
curl --location 'https://chrome-v2.browsercloud.io/content?token=API_TOKEN&os=ios&&url=https://api.myip.com'