Use Cases/ENGINEERS & DATA EXTRACTION

Eliminate CDP Runtime.enable Leaks & Bypass Turnstile at Scale

Recommended Architecture • Camoufox C++ (Turnstile/DataDome) or Chromium 138 + rebrowser-patches

Data engineers use MAHI Browser to automate Playwright and Puppeteer over port 32123 without triggering CDP Runtime.enable leaks—pairing rebrowser-patches isolated addBinding contexts on Chromium 138 with on-demand Camoufox C++ Firefox to bypass Cloudflare Turnstile, DataDome, and Akamai defenses.

Playwright & rebrowser-playwright-corePuppeteerCloudflare Turnstile & DataDomeMarket & Price Feeds

Detection Risks Eliminated

  • Standard Playwright/Puppeteer sessions leaking Runtime.enable execution contexts immediately upon page load.
  • Navigator.webdriver or prototype getter shims failing Function.prototype.toString native code inspections.
  • Linux server/container headless scrapers emitting synthetic SwiftShader WebGL signatures.
  • High cost per scraping concurrency seat in commercial cloud anti-detect platforms.
Stack LayerMAHI Standard SettingEngineering Rationale
CDP Patch Moderebrowser-patches (addBinding isolated bridge)Prevents target-page JS from detecting V8 background debugger binding creation.
Dual Engine FallbackCamoufox C++ Firefox 135 ESR via CAMOU_CONFIGCompletely bypasses Chromium-specific WAF signatures with native Gecko C++ rendering.
Control Plane APIAuthenticated Local HTTP API (127.0.0.1:32123)Returns isolated debugPort and wsEndpoint on demand for parallel Node.js or Python workers.
Human EmulationBézier Mouse Curves + Visual RPA StudioReplaces instant linear pointer jumps with realistic human movement trajectories.

Connect rebrowser-playwright-core Without Runtime.enable Leaks

typescript
import { chromium } from 'rebrowser-playwright-core';

const res = await fetch('http://127.0.0.1:32123/api/v1/profile/start', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'X-MAHI-Key': process.env.MAHI_KEY! },
  body: JSON.stringify({ profileId: 'scraper-worker-07' }),
});
const { wsEndpoint } = await res.json();
const browser = await chromium.connectOverCDP(wsEndpoint);
const page = browser.contexts()[0].pages()[0];
await page.goto('https://nowsecure.nl', { waitUntil: 'domcontentloaded' });

Frequently Asked Questions

Yes. Any Playwright (Node.js/Python) or Puppeteer client can launch a profile via POST http://127.0.0.1:32123/api/v1/profile/start and attach directly using the returned wsEndpoint.

More MAHI Browser Use Cases

Compare vs Competitors →