Plack::Middleware::Antibot::Static - Check if static file was fetched
enable 'Antibot', filters => [['Static', path => '/antibot.css']];
Plack::Middleware::Antibot::Static checks if a static-like file was fetched.
$env
plack.antibot.static.path
Path to the static file.
plack.antibot.static.html
Something like:
<img src="/antibot.gif" width="1" height="1" style="display:none" />
Filter's score when bot detected. 0.9 by default.
0.9
Session name. antibot_static by default.
antibot_static
Expiration timeout in seconds. 15 * 60 by default (15 minutes).
15 * 60
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.