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

Puppeteer detected by bot fingerprint detection #1386

Open
BrayanTF opened this issue Sep 15, 2024 · 0 comments
Open

Puppeteer detected by bot fingerprint detection #1386

BrayanTF opened this issue Sep 15, 2024 · 0 comments

Comments

@BrayanTF
Copy link

I'm using your library, but I'm seeing that the void detection does not work with the tool on the page.

// Puppeteer-Pro is a drop-in replacement for puppeteer
const PuppeteerPro = require('puppeteer-pro');
const { createCursor } = require('ghost-cursor')

// Enable the 'avoidDetection' plugin to prevent headless detection
PuppeteerPro.avoidDetection();


(async () => {
  const browser = await PuppeteerPro.launch({headless: true});
  const page = await browser.newPage();
  const cursor = createCursor(page);
  console.log('Testing the 🐱‍👤 avoidDetection 🐱‍👤 plugin..')
  await page.goto('https://arh.antoinevastel.com/bots/areyouheadless');
  await page.screenshot({ path: 'are-you-headless.png' });
  
  await page.goto('https://fingerprint.com/products/bot-detection/');
  const cookies = await page.waitForSelector('::-p-xpath(//span[text()=\'Accept Cookies\'])');
  await cursor.click(cookies);
  await page.screenshot({ path: 'fingerprint-bot-detection.png' , fullPage: true});
  await browser.close();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant