The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Antibot::Static - Check if static file was fetched

SYNOPSIS

    enable 'Antibot', filters =>
      [['Static', path => '/antibot.css']];

DESCRIPTION

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" />

Options

score

Filter's score when bot detected. 0.9 by default.

session_name

Session name. antibot_static by default.

timeout

Expiration timeout in seconds. 15 * 60 by default (15 minutes).

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.