Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
How to let cloudflare redirect on puppeteer (or, maybe, puppeteer alternatives)?

How to use puppeteer to access a site that is protected with CloudFlare? It's not that it blocks my connection or even shows a captcha. The principle of operation is as follows: I enter the site address, I get to the CloudFlare page, after a couple of seconds it redirects me to the site itself. When using puppeteer redirects do not occur. However, if you use "headless":false and carefully monitor the Chromium address bar, you can notice that for a split second it changes, but ultimately no redirect occurs.

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({"headless":false});
  const page = await browser.newPage();
  await page.goto('https://www.orrick.com/');
  await page.waitForSelector(".homepage");
  await page.screenshot({path: 'example.png'});

  await browser.close();
})();

Video (speed 0.1): https://gfycat.com/circularfearlessgemsbuck

P. S. The application for which I am trying to use puppeteer is written in PHP. I am ready to consider any analogues of puppeteer that provide similar functionality (web browser emulation) and are actual as of 2022.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda