Describe the bug
Simply injecting fingerprint-suite (using newInjectedContext or newInjectedPage), with or without options, for headless or headfull browser, makes the browser detected as headless in : https://arh.antoinevastel.com/bots/areyouheadless.
- headless = detected
- headless + stealth = undetected
- headless + fingerprint-suite = detected !!
- headless + stealth + fingerprint-suite = detected !!
- headfull = undetected
- headfull + stealth = undetected
- headfull + fingerprint-suite = detected !!
- headfull + stealth + fingerprint-suite = detected !!
Every time fingerprint suite is used, even without any option, it makes the browser detectable.
To Reproduce
const { chromium: playwright } = require('playwright-extra')
const { newInjectedContext } = require('fingerprint-injector');
playwright.launch({ headless: false }).then(test)
async function test(browser) {
const context = await newInjectedContext(browser, {}); // DETECTED
// const context = await brower.newContext(); // UNDETECTED
const page = await context.newPage();
await page.goto('https://arh.antoinevastel.com/bots/areyouheadless');
await page.screenshot({ path: 'detected.png', fullPage: true });
await browser.close()
}
Expected behavior
Injecting the fingerprint-suite shouldn't make the browser be detected as headless.
System information:
- OS: Arch Linux x86_64 - 6.3.2-arch1-1
- Node.js version: v16.20.0
Describe the bug
Simply injecting fingerprint-suite (using
newInjectedContextornewInjectedPage), with or without options, for headless or headfull browser, makes the browser detected as headless in : https://arh.antoinevastel.com/bots/areyouheadless.Every time fingerprint suite is used, even without any option, it makes the browser detectable.
To Reproduce
Expected behavior
Injecting the fingerprint-suite shouldn't make the browser be detected as headless.
System information: