Name
Mojolicious::Plugin::IsBot
Synopsis
A super simple Mojolicious plugin to test if a User-Agent header is possbily a bot.
Works by adding a is_bot
method to Mojo::Message::Request.
Example
use Mojolicious::Lite -signatures;
plugin('IsBot');
get '/' => sub {
my $s = shift;
return $s->render(text => 'You are bot!') if $s->req->is_bot;
$s->render(text => 'You are not bot!');
};
app->start;
License
Is::Bot is provided under the Artistic 2.0 license.