Cloudflare Turnstile as a captcha provider.
Each scope keeps its own widget: its site key (security.captcha.turnstile.site_key) and its
secret key (security.captcha.turnstile.secret_key, a :secret setting). Whether the visitor
sees a box, a box that rarely asks anything, or nothing at all is the widget's mode, chosen in
Cloudflare's dashboard — the same code draws all three. The widget's hostname list there decides
where it may be drawn.
A token is good for five minutes and one check. Cloudflare's published test keys draw a box that
always passes (1x00000000000000000000AA) or always fails (2x00000000000000000000AB), and
verify with any token: always (1x0000000000000000000000000000000AA), never
(2x0000000000000000000000000000000AA), or as already spent (3x0000000000000000000000000000000AA).
They answer the same token and hostname wherever they were solved, so a test key's answer is held
neither to the site's address nor to the form, and not remembered as used.
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for MishkaInstaller.Event.Hook.enable/0.
Callback implementation for MishkaInstaller.Event.Hook.get/0.
Optional. See MishkaInstaller.Event.Hook.health_check/0. Override to report health.
Optional. See MishkaInstaller.Event.Hook.on_dependency_error/1. Override to react.
Callback implementation for MishkaInstaller.Event.Hook.register/0.
Callback implementation for MishkaInstaller.Event.Hook.restart/0.
Callback implementation for MishkaInstaller.Event.Hook.start/0.
Callback implementation for MishkaInstaller.Event.Hook.stop/0.
Callback implementation for MishkaInstaller.Event.Hook.unregister/0.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec config() :: keyword()
@spec enable() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.enable/0.
@spec get() :: keyword()
Callback implementation for MishkaInstaller.Event.Hook.get/0.
Optional. See MishkaInstaller.Event.Hook.health_check/0. Override to report health.
Optional. See MishkaInstaller.Event.Hook.on_dependency_error/1. Override to react.
@spec register() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.register/0.
@spec restart() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.restart/0.
@spec start() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.start/0.
@spec stop() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.stop/0.
@spec unregister() :: okey_return() | error_return()
Callback implementation for MishkaInstaller.Event.Hook.unregister/0.