Skip to main content
Home/Recipes/Extract Cloudflare-protected sites with Firefox
Extraction

9.Extract Cloudflare-protected sites with Firefox

Developer

Overview

Some sites block Chromium-based extraction. Switch to Firefox or enable stealth mode to bypass bot protection. Use only on sites you are authorized to extract.

Sites protected by Cloudflare, Akamai, or similar bot detection systems sometimes block headless Chromium extraction. The --browser firefox flag switches to a Firefox instance which has different fingerprinting characteristics and higher success rates on protected sites. Combined with --stealth, which enables navigator spoofing and human mouse simulation, most bot-protected sites become extractable. Use only when you have authorization to access and extract the target site.

Try Firefox

Terminal
dembrandt protected-site.com --browser firefox --save-output

Firefox + stealth

Terminal
dembrandt protected-site.com --browser firefox --stealth --save-output

Full disguise

Terminal
dembrandt protected-site.com --stealth --browser firefox --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" --slow --save-output
Output

Successful extraction from bot-protected sites where Chromium fails.

Browse all

All recipes →

43 workflows