nathcf
v1.0.1
Published
Cloudflare bypass wrapper, by nath
Downloads
7,394
Readme
cf-solver
A lightweight Node.js wrapper for the CF Solver API — handles Cloudflare bypass, Turnstile, reCAPTCHA, and more.
Installation
npm install node-fetchThen drop index.js into your project and import it.
Usage
import { nathcf } from 'nathcf'WAF Session
Grabs a Cloudflare clearance session (cf_clearance cookie + headers).
const { cookies, headers, cf_clearance } = await nathcf.wafSession('https://example.com')Turnstile (Min)
Solves Cloudflare Turnstile using a known sitekey.
const { token } = await nathcf.turnstileMin('https://example.com', '0x4AAAAAAA...')Turnstile (Max)
Solves Cloudflare Turnstile by auto-detecting the widget on the page.
const { token } = await nathcf.turnstileMax('https://example.com')reCAPTCHA v3
Solves reCAPTCHA v3 using a known sitekey.
const { token } = await nathcf.recaptchav3('https://example.com', '6LcXXXXXXX...')Source
Fetches the full HTML of a Cloudflare-protected page.
const html = await nathcf.source('https://example.com')Key
Auto-detects and extracts the sitekey from a page.
const { sitekey, type } = await nathcf.key('https://example.com')Proxy Support
All methods accept an optional proxy argument as the last parameter.
Supported formats:
host:port
user:pass@host:portconst { token } = await nathcf.turnstileMax('https://example.com', '127.0.0.1:8080')Rate Limit
The underlying API is free to use with a limit of 5 requests per 5 minutes. No API key required.
API endpoint: https://cf-solver-renofc.my.id/api/solvebeta
License
Copyright © NATH. All rights reserved.
