Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FlareSolverr .Net / Proxy server to bypass Cloudflare protection

License

NotificationsYou must be signed in to change notification settings

FlareSolverr/FlareSolverrSharp

Repository files navigation

Latest versionNuGet downloadsGitHub issuesGitHub pull requestsDonate PayPalDonate BitcoinDonate Ethereum

FlareSolverr .Net DelegatingHandler / interceptor.FlareSolverr is a proxy server to bypass Cloudflare protection.

Installation

Full-Featured library:

PM> Install-Package FlareSolverr

Dependencies

You need a runningFlareSolverr service.

Issues

Cloudflare regularly modifies their protection challenge and improves their bot detection capabilities.

If you notice that the anti-bot page has changed, or if library suddenly stops working, please create a GitHub issue so that I canupdate the code accordingly.

Before submitting an issue, just be sure that you have the latest version of the library.

Usage

ADelegatingHandler thathandles the challenge solution automatically.

A type for HTTP handlers that delegate the processing of HTTP response messages to another handler, called the inner handler.

It checks on every request if the clearance is required or not, if required, it solves the challenge in background then returns the response.

Websites not using Cloudflare will be treated normally. You don't need to configure or call anything further, and you can effectively treatall websites as if they're not protected with anything.

varhandler=newClearanceHandler("http://localhost:8191/"){MaxTimeout=60000,ProxyUrl="http://127.0.0.1:8888",ProxyUsername="cool_username",ProxyPassword="password4"};varclient=newHttpClient(handler);varcontent=awaitclient.GetStringAsync("https://uam.hitmehard.fun/HIT");Console.WriteLine(content);

Full examplehere

Options

FlareSolverr Service API

You have to set the FlareSolverr service API in the ClearanceHandler constructor. If you set an empty or null endpoint,FlareSolverrSharp will be able to detect challenges, but it will not be able to solve them.

Example:http://localhost:8191/

MaxTimeout

Max timeout to solve the challenge.

MaxTimeout should be greater than 15000 (15 seconds) because starting the web browser and solving the challenge takes time.

Example: 60000

ProxyUrl

The ProxyUrl which will be sent to FlareSolverr.

Example:http://127.0.0.1:8888

ProxyUsername

The ProxyUsername which will be sent to FlareSolverr. (Only if ProxyUrl has been set)

Use this if the proxy you're using requires authentication.

ProxyPassword

The ProxyPassword which will be sent to FlareSolverr. (Only if ProxyUrl has been set)

Use this if the proxy you're using requires authentication.

About

FlareSolverr .Net / Proxy server to bypass Cloudflare protection

Topics

Resources

License

Stars

Watchers

Forks

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp