DrawingCaptcha 1.0.22

dotnet add package DrawingCaptcha --version 1.0.22
                    
NuGet\Install-Package DrawingCaptcha -Version 1.0.22
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DrawingCaptcha" Version="1.0.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DrawingCaptcha" Version="1.0.22" />
                    
Directory.Packages.props
<PackageReference Include="DrawingCaptcha" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DrawingCaptcha --version 1.0.22
                    
#r "nuget: DrawingCaptcha, 1.0.22"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DrawingCaptcha&version=1.0.22
                    
Install DrawingCaptcha as a Cake Addin
#tool nuget:?package=DrawingCaptcha&version=1.0.22
                    
Install DrawingCaptcha as a Cake Tool

Drawing Captcha Umbraco Integration

This is the NuGet package for .NET 8 .NET Core applications, primarily written to extend the Umbraco Forms Integration. You can find the package on NuGet.

Installation

Once the NuGet package is installed, the package source will be copied to ~/App_Plugins/Drawing_Captcha/.

Setup

Script Integration

After installation, implement the script that triggers the drawing captcha attributes. It is recommended to place this script in the base page view to ensure it is rendered after the form:

<script src="~/App_Plugins/Drawing_Captcha/captcha.js" onload="initializeCaptcha()"></script>

Example integration in a Razor view:

@using System.Globalization
@inherits UmbracoViewPage<IBasePage>
@using Microsoft.Extensions.Configuration
@inject IConfiguration Configuration
@inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    @await Html.PartialAsync("Partials/Header")
    @RenderBody()
    @await Html.PartialAsync("Partials/Footer")
    <script src="~/App_Plugins/Drawing_Captcha/captcha.js" onload="initializeCaptcha()"></script>
</body>
</html>

Configuration

Ensure your API key and server are configured in appsettings.json:

"Forms": {
    "FieldTypes": {
        "DrawingCaptcha": {
            "APIKey": "yourapikey",
            "Server": "https://yourdrawingcaptchainstance.com/"
        }
    }
}

You can obtain an API key by creating a company account if you haven't done so already. Make sure to allow the origin that will be using the drawing captcha.

Origin Setup

API Key Management

Navigate to drawing-captcha > api-keys to create a new API key.

API Key Navigation

Create an API key:

API Key Creation

Umbraco Backoffice Integration

After setting up the configuration, navigate to the Umbraco Forms backoffice. You should see the extended field type added by the package, indicating that the drawing captcha is active.

Field Type Added

Here you can see that the drawing captcha is active:

Captcha Active

Additional Resources

License

This project is licensed under the MIT License.

Contact

For issues or contributions, please visit the GitHub repository.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.22 144 3/31/2025
1.0.21 134 3/31/2025
1.0.20 143 3/31/2025
1.0.19 138 3/31/2025
1.0.18 118 3/28/2025
1.0.17 450 3/26/2025
1.0.17-Alpha 466 3/25/2025
1.0.16 466 3/25/2025
1.0.15 405 3/24/2025
1.0.14 138 3/19/2025
1.0.13 139 3/19/2025
1.0.12 131 3/19/2025
1.0.11 136 3/19/2025
1.0.10 135 3/19/2025
1.0.9 137 3/19/2025
1.0.7 145 3/19/2025
1.0.6 133 3/19/2025
1.0.5 141 3/19/2025
1.0.4 136 3/19/2025
1.0.3 133 3/19/2025
1.0.2 139 3/19/2025
1.0.1 140 3/19/2025
1.0.0 133 3/18/2025