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

Redirection from Cloudflare Waiting Room is blocked #2426

Open
starkdm opened this issue Feb 4, 2024 · 2 comments
Open

Redirection from Cloudflare Waiting Room is blocked #2426

starkdm opened this issue Feb 4, 2024 · 2 comments

Comments

@starkdm
Copy link

starkdm commented Feb 4, 2024

The site I'm trying to explore with Puppeteer is protected by a Cloudflare page that analyzes the browser. It appears that there is some problem when using GoToAsync - the Cloudflare waiting room is endlessly updating, but does not block access. As soon as I close the application (= close the CDP session), the redirection is immediately completed successfully. If I open the tab manually and type in the URL, the check is also successful. Either Cloudflare somehow understands that the browser is automated, or there is a problem in Puppeteer. How can we understand this?

In addition, if you create a new tab and load the page, then continue execution from the line IPage page = await PuppeteerHeadful.NewPageAsync();, the check will be successful.

await new BrowserFetcher().DownloadAsync();
PuppeteerHeadful = await Puppeteer.LaunchAsync(new LaunchOptions {
    Headless = false,
    Devtools = false,
    Browser = SupportedBrowser.Chrome,
    DefaultViewport = null,
    Args = new[] {
        "--disable-blink-features=AutomationControlled"
    }
});

IPage page = await PuppeteerHeadful.NewPageAsync();
await page.GoToAsync(url);

URL for example: https://www.vindecoderz.com/EN/check-lookup/WVWMP7AN2BE710202
.NET version: 6.0
PuppeteerSharp version: 14.0.0

@kblok
Copy link
Member

kblok commented Feb 5, 2024

There are some conversations upstream about that.

@starkdm
Copy link
Author

starkdm commented Feb 5, 2024

@kblok Found this discussion earlier. I think I have a different problem because I don't see any warnings from Cloudflare.

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

2 participants