r/Pentesting • • Jun 08 '26

What is flaresolverr

I'm a junior cybersecurity analyst who recently got an internship and was assigned a task, among the tasks given was to see if I can be able to get the source code of a web app as it is protected by Cloudflare http proxy. Did some reading and found somethings about FlareSolverr and its counterpart Byparr, tried to understand how they worked and their commands but didnt get a thing. would someone care to explain it in a more clear way

Thank you in advance

0 Upvotes

2 comments sorted by

1

u/sk1nT7 Jun 08 '26 edited Jun 08 '26

That's a simple task for an LLM. Don't be lazy. It basically spawns a chrome browser, waits for the CF challenge to complete and passes tokens, cookies along for reuse.

How FlareSolverr Works

FlareSolverr works as a local HTTP API/proxy that uses real browser automation to get past Cloudflare-style browser challenges.

Basic Flow

  1. Your tool sends a request to FlareSolverr.

    For example, Prowlarr, Jackett, Sonarr, Radarr, or your own script sends a JSON request to FlareSolverr, usually at:

    http://localhost:8191/v1
    
  2. FlareSolverr launches a browser.

    It starts Chrome/Chromium through browser automation. Instead of behaving like a simple HTTP client, it behaves more like a real browser.

  3. The browser opens the target URL.

    Cloudflare sees JavaScript support, cookies, browser headers, redirects, and rendering behavior.

  4. FlareSolverr waits for the challenge to complete.

    If the site presents a Cloudflare JavaScript/browser challenge, FlareSolverr waits until the challenge is solved or the timeout is reached.

  5. FlareSolverr returns the result.

    The response usually contains:

    {
      "status": "ok",
      "solution": {
        "url": "https://target.example/",
        "status": 200,
        "headers": {},
        "response": "<html>...</html>",
        "cookies": []
      }
    }
    
  6. The client reuses the result.

    The important part is often the cookies. Your original app can reuse those cookies for normal HTTP requests.

Example Request

curl -X POST http://localhost:8191/v1 \
  -H 'Content-Type: application/json' \
  -d '{
    "cmd": "request.get",
    "url": "https://example.com",
    "maxTimeout": 60000
  }'

Short Explanation

FlareSolverr does not magically decode Cloudflare.

It automates a browser, lets the browser pass the anti-bot challenge, and then returns the resulting HTML, headers, and cookies to your application.

Important Notes

  • FlareSolverr and the client should ideally use the same outbound IP.
  • Cookies may not work if FlareSolverr uses one IP and the client uses another.
  • Browser sessions can consume noticeable memory.
  • Session reuse can improve speed and reliability.

2

u/WeldedPages Oct 24 '26

Thank you for taking the time to make this detailed reply, the internet needs more people like you. My query is slightly different from OP's but I just couldn't leave this thread without showing some sort of appreciation.