NAME
Plack::Middleware::Antibot::TextCaptcha - Check if correct captcha was submitted
SYNOPSIS
enable 'Antibot', filters =>
[['TextCaptcha', variants => [{text => '2 + 2', answer => 4}]]];
DESCRIPTION
Plack::Middleware::Antibot::TextCaptcha checks if a correct captcha was submitted. Most of the time a simple text with a simple solution is enough to prevent bots from successful form submitions.
$env
This filter sets plack.antibot.textcaptcha.text
as captcha text. This should be shown to the user as a field label or description.
plack.antibot.textcaptcha.field_name
is set to the needed field name.
Options
score
Filter's score when bot detected. 0.8
by default.
session_name
Session name. antibot_textcaptcha
by default.
field_name
Field name. antibot_textcaptcha
by default.
variants
Captcha variants. [{text =
'2 + 2', answer => 4}]> by default.
ISA
Plack::Middleware::Antibot::FilterBase
METHODS
new
execute($env)
INHERITED METHODS
score
AUTHOR
Viacheslav Tykhanovskyi, <viacheslav.t@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2015, Viacheslav Tykhanovskyi
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.