OneStopAntibot 0.2.1
dotnet add package OneStopAntibot --version 0.2.1
NuGet\Install-Package OneStopAntibot -Version 0.2.1
<PackageReference Include="OneStopAntibot" Version="0.2.1" />
<PackageVersion Include="OneStopAntibot" Version="0.2.1" />
<PackageReference Include="OneStopAntibot" />
paket add OneStopAntibot --version 0.2.1
#r "nuget: OneStopAntibot, 0.2.1"
#:package OneStopAntibot@0.2.1
#addin nuget:?package=OneStopAntibot&version=0.2.1
#tool nuget:?package=OneStopAntibot&version=0.2.1
OneStop C# SDK
C# client for the OneStop Antibot API. The SDK calls /generate and returns typed results; your application fetches the target pages and scripts and sends the generated payloads.
Products: Akamai (sensor, SBSD, Pixel, sec-cpt), DataDome (tags, interstitial, slider), Cloudflare (WAF, Turnstile, JSD, precursor), Kasada (p.js, /tl, CD header), Imperva (reese84, utmvc).
Install
dotnet add package OneStopAntibot
Requires .NET 8+. Package: NuGet.
Quick start
var client = new OneStopClient(new OneStopOptions
{
ApiKey = "YOUR_API_KEY",
Identifier = "YOUR_IDENTIFIER", // your identifier or account name
});
var ip = await client.GetIpAsync(); // set OneStopOptions.IpHttpClient to your proxy so this is the proxy's IP
var session = client.Session(new SessionOptions
{
Site = pageUrl, Referer = pageUrl, UserAgent = userAgent, AcceptLanguage = "en-US,en;q=0.9", Ip = ip,
});
var res = await session.AkamaiSensorAsync(new AkamaiSensorCall { Abck = abck, Bmsz = bmsz, Script = script, ScriptUrl = scriptUrl });
// POST res.Payload as sensor_data; send res.Context on the next call.
Header order
Copy each request's header names, values and order from a browser recording (DevTools, powhttp, Charles) of that request, and set the order explicitly in your TLS client; the examples' headers only show how:
// TlsClient
var request = new RequestBuilder().WithUrl(url).WithMethod(HttpMethod.Get)
.WithHeader("user-agent", userAgent).WithHeader("accept", "*/*")
.WithHeaderOrder(["user-agent", "accept"]);
// HttpCloak
session.RequestBinary("GET", url, [], new Dictionary<string, string> { ["user-agent"] = userAgent, ["accept"] = "*/*" },
headerOrder: ["user-agent", "accept"]);
See examples/ for full flows per product and TLS client.
Documentation: onestopantibot.com/dashboard/docs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- ZstdSharp.Port (>= 0.8.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.