unixfox/pupflare
关于
通过 Chromium(Puppeteer)转发请求的网页代理,可用于让任何应用(如 curl)绕过 Cloudflare 的反机器人和反 DDoS 防护。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文pupflare
🆕 NEW: pupflare no longer uses Puppeteer — it now runs on Camoufox, an anti-detection Firefox, for far better resistance to bot detection.
A small proxy server that transparently solves Cloudflare (and similar) anti-bot challenges and returns the real page.
As of v2.0 pupflare no longer uses Puppeteer + puppeteer-extra-plugin-stealth
(which is now reliably fingerprinted and blocked). It uses
Camoufox instead — an anti-detection
Firefox build driven through Playwright. All the previous behaviour is preserved:
request/response header forwarding, POST body forwarding, cookie forwarding, the
challenge wait loop, and file-download capture.
How to launch pupflare
- Install NodeJS (>= 18)
npm install— this also downloads the Camoufox browser via thepostinstallhook. If that step is skipped (e.g.--ignore-scripts), runnpx camoufox-js fetchmanually.npm start
How to use
Send your request to the server on port 3000 and add your URL to the url query
string like this:
http://localhost:3000/?url=https://example.org
GET and POST are both supported; the request body and (most) request headers are
forwarded to the target. Any cookies the target sets are forwarded back to your client.
This script is configured to wait for the Cloudflare challenge to pass. You can
configure the "match" for anything else using the environment variable
CHALLENGE_MATCH. If the website you are targeting has a protection page with
"please wait" in the HTML, then launch the script like this:
CHALLENGE_MATCH="please wait" npm start
Environment variables
| Variable | Description |
|---|---|
PORT / ADDRESS |
Listen port (default 3000) and address (default ::). |
CAMOUFOX_HEADFUL |
Show the browser window. Set to virtual to use a virtual display (Xvfb) on Linux. |
CAMOUFOX_PROXY |
Upstream proxy, e.g. localhost:8080 or socks5://host:1080 (a missing scheme defaults to http://). |
CAMOUFOX_USER_DATA_DIR |
Persist the browser profile in this directory (uses a persistent context). |
CAMOUFOX_EXECUTABLE_PATH |
Use a specific Camoufox binary instead of the auto-downloaded one. |
CAMOUFOX_GEOIP |
Match locale/timezone/geolocation to the (proxy) IP — strongly recommended when using a proxy. |
CAMOUFOX_BLOCK_IMAGES |
Skip loading images (faster). |
CAMOUFOX_OS |
Fingerprint OS: windows, macos, linux, or a comma-separated list to randomise. |
CHALLENGE_MATCH |
HTML substring that marks a challenge page (default challenge-platform). |
DEBUG / DEBUG_BODY |
Log request/response headers, and the response body respectively. |
Tests
npm test # fast unit tests (no browser needed)
npm run test:integration # end-to-end tests against a local server (launches Camoufox)
npm run test:integration requires the Camoufox browser (npx camoufox-js fetch).
To eyeball anti-detection against a fingerprinting page:
node stealth-check.js # opens CreepJS
node stealth-check.js https://bot.sannysoft.com
Docker
Build locally:
docker build -t pupflare .
docker run -d -p 3000:3000 pupflare
The upstream image at https://quay.io/repository/unixfox/pupflare may still be Puppeteer-based until it is rebuilt from this branch.
探索相关项目
加载中…