NAME
Plack::Middleware::Antibot::FakeField - Check if fake field was submitted
SYNOPSIS
enable 'Antibot', filters => ['FakeField'];
DESCRIPTION
Plack::Middleware::Antibot::FakeField checks if a fake field was submitted. The field with specified name has to be present on a form, but should be invisible to user. This can be achieved either by CSS or by JavaScript.
<div style="display:none">
<label>Please leave this blank</label>
<input name="antibot_fake_field" />
</div>
It is better to name the field to something that makes sense but doesn't clash with other fields.
Options
score
Filter's score when bot detected. 0.8
by default.
field_name
Field name. antibot_fake_field
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.