Skip to main content

plone.formwidget.hcaptcha

plone.formwidget.hcaptcha is a z3c.form HCaptcha widget for use with Plone.

It is a re-work of the plone.formwidget.recaptcha package original written by Timo Stollenwerk.

HCaptcha setup

There is a control panel at http://path/to/site/@@hcaptcha-settings to configure the Addon. HCaptcha provides test keys, that can be used to try out the hcaptcha form and documentation at https://docs.hcaptcha.com/.

Site key: 10000000-ffff-ffff-ffff-000000000001

Secret key: 0x0000000000000000000000000000000000000000

To actually use the service, you must obtain a site key and secret key from https://www.hcaptcha.com/signup-interstitial

Verification endpoint

According to the official hCaptcha documentation (https://docs.hcaptcha.com/#server), the token verification endpoint is:

https://api.hcaptcha.com/siteverify

This package now uses api.hcaptcha.com by default instead of hcaptcha.com. If you need to change the host (e.g. staging or internal testing), set the environment variable before starting your Plone instance:

HCAPTCHA_VERIFY_SERVER=api.hcaptcha.com

If the variable is not defined, the safe default (api.hcaptcha.com) will be used.

Usage

See the demo folder inside the distribution for an example usage.

Supermodel

You can add a captcha field in an XML model by adding something like this:

<field name="captcha" type="plone.formwidget.hcaptcha.HCaptchaWidget">
  <title>Solve Captcha</title>
  <description></description>
</field>

Source Code

Contributors please read the document Process for Plone core's development

Sources are at the Plone code repository hosted at Github.

Features

TODO: List our awesome features

Installation

Install plone.formwidget.hcaptcha with pip:

pip install plone.formwidget.hcaptcha

And to create the Plone site:

make create-site

Contribute

Prerequisites ✅

Installation 🔧

  1. Clone this repository, then change your working directory.

    git clone git@github.com:plone/plone.formwidget.hcaptcha.git
    cd plone.formwidget.hcaptcha
    
  2. Install this code base.

    make install
    

Add features using plonecli or bobtemplates.plone

This package provides markers as strings (<!-- extra stuff goes here -->) that are compatible with plonecli and bobtemplates.plone. These markers act as hooks to add all kinds of subtemplates, including behaviors, control panels, upgrade steps, or other subtemplates from plonecli.

To run plonecli with configuration to target this package, run the following command.

make add <template_name>

For example, you can add a content type to your package with the following command.

make add content_type

You can add a behavior with the following command.

make add behavior
You can check the list of available subtemplates in the [`bobtemplates.plone` `README.md` file](https://github.com/plone/bobtemplates.plone/?tab=readme-ov-file#provided-subtemplates).
See also the documentation of [Mockup and Patternslib](https://6.docs.plone.org/classic-ui/mockup.html) for how to build the UI toolkit for Classic UI.

License

The project is licensed under GPLv2.

Credits and acknowledgements 🙏

Generated using Cookieplone (0.9.10) and cookieplone-templates (c0b5a93) on 2025-11-14 18:16:57.945239. A special thanks to all contributors and supporters!

Release files for plone.formwidget.hcaptcha 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plone.formwidget.hcaptcha 3.0.0
File Size Uploaded
plone_formwidget_hcaptcha-3.0.0.tar.gz 30.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plone.formwidget.hcaptcha 3.0.0
File Interpreter ABI Platform
plone_formwidget_hcaptcha-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.0 kB

Release files / plone_formwidget_hcaptcha-3.0.0.tar.gz

Download URL plone_formwidget_hcaptcha-3.0.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2916814c09ea5f37a8e6f0a7ea2c4970ac728ea432365c1a8c83782c19109cf6
BLAKE2b-256 checksum
How to use checksums
671ba332155c08ea56fa195515a210cb8048a800045ca513714a1aa1f3d4139a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release files / plone_formwidget_hcaptcha-3.0.0-py3-none-any.whl

Download URL plone_formwidget_hcaptcha-3.0.0-py3-none-any.whl
Size 43.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab9d88ddbe7551798faf609d991a86a876840c5896fc65e1ac3bf64b5f77d54d
BLAKE2b-256 checksum
How to use checksums
dd10c3d2180f1c4c16cb14bf1affe282824bd1e149f31762c810aab3e9df4c2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.0.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page