Official .NET SDK for server-side verification of Private Captcha solutions.
Please check the official documentation for the in-depth and up-to-date information.
- Install the package via the .NET CLI or the NuGet Package Manager Console.
dotnet add package PrivateCaptcha
- To verify a CAPTCHA solution, instantiate
PrivateCaptchaClientwith your configuration and callVerifyAsync.var config = new PrivateCaptchaConfiguration { ApiKey = "YOUR_API_KEY" }; var captchaClient = new PrivateCaptchaClient(config); var result = await captchaClient.VerifyAsync(new VerifyInput { Solution = captchaSolution }); if (result.OK()) { Console.WriteLine("Captcha verification succeeded!"); } else { // Verification failed, you can check the reason. Console.WriteLine($"Verification failed: {result.GetErrorMessage()}"); }
- To use ASP.NET Core Middleware, add
app.UsePrivateCaptcha()to your request pipeline.
- .NET 6+
- No external dependencies (uses only standard library)
This project is licensed under the MIT License - see the LICENSE file for details.
For issues with this .NET/C# client, please open an issue on GitHub. For Private Captcha service questions, visit privatecaptcha.com.