{"id":22293546,"url":"https://github.com/gsemac/gsemac.net.cloudflare","last_synced_at":"2025-07-29T00:31:08.640Z","repository":{"id":41354219,"uuid":"271146843","full_name":"gsemac/Gsemac.Net.Cloudflare","owner":"gsemac","description":"Utilities for working with Cloudflare-protected webpages","archived":false,"fork":false,"pushed_at":"2024-05-22T00:29:28.000Z","size":426,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-23T00:57:27.197Z","etag":null,"topics":["cloudflare","cloudflare-bypass","netframework4","netstandard"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsemac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-10T01:26:18.000Z","updated_at":"2024-08-20T07:42:59.312Z","dependencies_parsed_at":"2022-09-19T03:20:12.398Z","dependency_job_id":"c64a40c3-5e69-4080-92a2-83c1e7a64d00","html_url":"https://github.com/gsemac/Gsemac.Net.Cloudflare","commit_stats":{"total_commits":312,"total_committers":1,"mean_commits":312.0,"dds":0.0,"last_synced_commit":"89ddaa93ccf6bb96d0af1102c17176d404a98793"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsemac%2FGsemac.Net.Cloudflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsemac%2FGsemac.Net.Cloudflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsemac%2FGsemac.Net.Cloudflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsemac%2FGsemac.Net.Cloudflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsemac","download_url":"https://codeload.github.com/gsemac/Gsemac.Net.Cloudflare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227965073,"owners_count":17848360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-bypass","netframework4","netstandard"],"created_at":"2024-12-03T17:29:33.775Z","updated_at":"2024-12-03T17:29:34.401Z","avatar_url":"https://github.com/gsemac.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gsemac.Net.Cloudflare\n[![NuGet](https://img.shields.io/nuget/v/Gsemac.Net.Cloudflare.svg)](https://www.nuget.org/packages/Gsemac.Net.Cloudflare/) \n[![NuGet](https://img.shields.io/nuget/dt/Gsemac.Net.Cloudflare)](https://www.nuget.org/packages/Gsemac.Net.Cloudflare/)\n\nGsemac.Net.Cloudflare is a library for interacting with Cloudflare-protected websites designed to be compatible with .NET Framework 4.0 and later.\n\nClasses are provided for passing `HttpWebRequest`-based requests through [cloudscraper](https://github.com/VeNoMouS/cloudscraper), [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr), and Selenium.\n\n## Usage\n\nThe bypass is implemented by use of the delegating handler implementation from [Gsemac.Net](https://github.com/gsemac/Gsemac.Common). To use FlareSolverr, first register the `FlareSolverrService` and `FlareSolverrChallengeHandler` services. `WebClientFactory` will use the handler to pass requests through FlareSolverr.\n\n```csharp\nstatic ServiceProvider CreateServiceProvider() {\n\n    return new ServiceCollection()\n        .AddSingleton\u003cILogger, ConsoleLogger\u003e()\n        .AddSingleton\u003cIWebClientFactory, WebClientFactory\u003e()\n        .AddSingleton\u003cIFlareSolverrService, FlareSolverrService\u003e()\n        .AddSingleton\u003cWebRequestHandler, FlareSolverrChallengeHandler\u003e()\n        .BuildServiceProvider();\n\n}\n\nstatic void Main(string[] args) {\n\n    using (ServiceProvider serviceProvider = CreateServiceProvider()) {\n\n        IWebClientFactory webClientFactory = serviceProvider.GetRequiredService\u003cIWebClientFactory\u003e();\n\n        using (IWebClient webClient = webClientFactory.Create()) \n            Console.WriteLine(webClient.DownloadString(\"https://example.com/\"));\n\n    }\n\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsemac%2Fgsemac.net.cloudflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsemac%2Fgsemac.net.cloudflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsemac%2Fgsemac.net.cloudflare/lists"}