Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudflare checkbox disappear when I comment some flag #145

Open
tzbo opened this issue Mar 13, 2023 · 3 comments
Open

cloudflare checkbox disappear when I comment some flag #145

tzbo opened this issue Mar 13, 2023 · 3 comments
Assignees
Labels
bug Something isn't working. t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@tzbo
Copy link

tzbo commented Mar 13, 2023

To Reproduce

const fingerprintGenerator = new FingerprintGenerator();
const fingerprintWithHeaders = fingerprintGenerator.getFingerprint({
    locales: ['en', 'en-US'],
    devices: ['desktop'],
    browsers: [
        { name: 'chrome', minVersion: 98, maxVersion: 105 },
        { name: 'firefox', minVersion: 98, maxVersion: 105 }
    ],
    operatingSystems: ['windows'],
    screen: {
        minWidth: 800,
        maxWidth: 1920,
        minHeight: 600,
        maxHeight: 1200,
    },
});
const pptr = await puppeteer.launch({
    headless: false,
    ignoreDefaultArgs: [
        "--enable-automation",
    ],
    args: [
        "--lang=en-US,en",
        "--proxy-server=http://localhost:7890",
        "--disable-infobars",
        "--start-maximized",
        "--disable-blink-features=AutomationControlled",
        // "--disable-site-isolation-trials",
        // "--disable-features=IsolateOrigins,site-per-process,SitePerProcess",
    ],
    executablePath: executablePath()
});
const page = await pptr.newPage();
const fingerprintInjector = new FingerprintInjector();
fingerprintInjector.attachFingerprintToPuppeteer(page, fingerprintWithHeaders);
await page.goto('https://nowsecure.nl/');

Screenshot 2023-03-14 at 06 28 29

When I uncomment this two flags, the checkbox appears again.

"--disable-site-isolation-trials",
"--disable-features=IsolateOrigins,site-per-process,SitePerProcess",

Screenshot 2023-03-14 at 06 27 57

@tzbo tzbo added the bug Something isn't working. label Mar 13, 2023
@tzbo
Copy link
Author

tzbo commented Mar 14, 2023

The site adds a frame in page. As following:

<iframe allow="cross-origin-isolated">

I think it's may this problem. But I don't know how to fix it. Are there any suggestions?

@tzbo
Copy link
Author

tzbo commented Mar 14, 2023

If I want to inject my own codes, how should I do?

@luluhoc
Copy link

luluhoc commented Jun 20, 2023

I'm facing the same problem the Cloudflare iframe detects that i run automation

@barjin barjin self-assigned this Jul 21, 2023
@barjin barjin added the t-tooling Issues with this label are in the ownership of the tooling team. label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

3 participants