Plack::Middleware::Antibot::TextCaptcha - Check if correct captcha was submitted
enable 'Antibot', filters => [['TextCaptcha', variants => [{text => '2 + 2', answer => 4}]]];
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.text
plack.antibot.textcaptcha.field_name is set to the needed field name.
plack.antibot.textcaptcha.field_name
Filter's score when bot detected. 0.8 by default.
0.8
Session name. antibot_textcaptcha by default.
antibot_textcaptcha
Field name. antibot_textcaptcha by default.
Captcha variants. [{text = '2 + 2', answer => 4}]> by default.
[{text =
Plack::Middleware::Antibot::FilterBase
new
execute($env)
score
Viacheslav Tykhanovskyi, <viacheslav.t@gmail.com>
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.
To install Plack::Middleware::Antibot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Antibot
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Antibot
For more information on module installation, please visit the detailed CPAN module installation guide.