flaresolverr

Bypass Cloudflare anti-bot protection and 403 challenges using a FlareSolverr proxy to scrape blocked websites.

Requirements

Requires a running FlareSolverr instance and curl.

Install

npx skills add whtsky/skills -s flaresolverr

FlareSolverr

Bypass Cloudflare protection using FlareSolverr proxy. Default endpoint can be overridden with FLARESOLVERR_URL environment variable (default: http://localhost:8191).

When to Use

Usage

# Using default URL
FLARESOLVERR_URL="${FLARESOLVERR_URL:-http://localhost:8191}"

curl -s -X POST "$FLARESOLVERR_URL/v1" \
  -H "Content-Type: application/json" \
  -d '{
    "cmd": "request.get",
    "url": "https://example.com/page",
    "maxTimeout": 120000
  }'

Response

{
  "status": "ok",
  "message": "Challenge solved!" or "Challenge not detected!",
  "solution": {
    "url": "final URL after redirects",
    "status": 200,
    "response": "<html>...</html>",
    "cookies": [...],
    "userAgent": "..."
  }
}

Extract content from solution.response.

POST Requests

curl -s -X POST "$FLARESOLVERR_URL/v1" \
  -H "Content-Type: application/json" \
  -d '{
    "cmd": "request.post",
    "url": "https://example.com/api",
    "postData": "key=value&foo=bar",
    "maxTimeout": 120000
  }'

Tips

View source on GitHub →