A .NET PCL to bypass Cloudflare's Anti-DDoS measure (JavaScript challenge) using a DelegatingHandler.
- No dependencies (e.g. no external JavaScript interpreter required)
- Easily integrated into your project (implemented as DelegatingHandler; e.g. can be used with HttpClient)
- Usable on many different platforms (PCL Profile 111)
// Create the clearance handler.
var handler = new ClearanceHandler();
// Create a HttpClient that uses the handler.
var client = new HttpClient(handler);
// Use the HttpClient as usual. Any JS challenge will be solved automatically for you.
var content = await client.GetStringAsync("http://protected-site.tld/");