NAME
Web::VWF::Display::captcha - The page that asks a client to prove it is a person
VERSION
Version 0.003.0
DESCRIPTION
Shown by Web::VWF and not by ?page=, when a client goes over the soft rate limit (see security.rate_limiting in "CONFIGURATION" in Web::VWF), and again, with hard_block set, with the hard limit's warning when reCAPTCHA is enabled. The answer comes back as g-recaptcha-response, which Web::VWF::CAPTCHA checks.
METHODS
html
Takes hard_block and request_count, both optional, which are only shown to the client. Dies when reCAPTCHA is not enabled or the object has no config or info. The template is captcha.tmpl; it is given site_key, script_name and the limits.
API SPECIFICATION
INPUT
{ hard_block => { type => 'boolean', optional => 1 }, request_count => { type => 'integer', optional => 1 } }
OUTPUT
{ type => 'string' } # the HTML
AUTHOR
Nigel Horne, <njh at nigelhorne.com>
LICENCE AND COPYRIGHT
Copyright 2010-2026 Nigel Horne.
Usage is subject to the GPL2 licence terms. If you use it, please let me know.