Node.js library (v1.0.3) that wraps Axios to automatically detect and bypass DDoS Guard protection (https://ddos-guard.net/en). Acts as an Axios interceptor: when a request encounters a DDoS Guard challenge page, it solves it by executing the challenge (typically JavaScript), extracts the resulting cookies, and retries the original request. Supports optional tough-cookie CookieJar for persistent session management and HTTP/HTTPS proxies. Fully typed with TypeScript, requires Node >=14. Unlike manual cookie handling or headless browser approaches, this is lightweight and API-friendly.
npm install axios-ddos-guard-bypassNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an Axios instance, attaches DDoS Guard bypass interceptor, and makes a GET request with automatic challenge solving.
Pass a Buffer instead of a stream, e.g., use form.getBuffer() for FormData.
Use named import: `import { ddosGuardBypass } from 'axios-ddos-guard-bypass'`.Create a tough-cookie CookieJar and assign it to `agent.defaults.jar` before calling ddosGuardBypass.
Monitor the GitHub repo for updates; the maintainer may need to release a new version to handle new challenge patterns.
Upgrade Node to v14 or later.
Switch to dynamic import: `const { ddosGuardBypass } = await import('axios-ddos-guard-bypass');` or use a bundler that supports ESM.Ensure you pass a valid tough-cookie CookieJar instance (import { CookieJar } from 'tough-cookie') and assign it to agent.defaults.jar.Convert stream to Buffer (e.g., form.getBuffer() for FormData) before sending.
Run only in Node.js >=14; do not use in browser or serverless environments without the required globals.