Name

Is::Bot

Synopsis

Is::Bot is a super simple way to test if a User-Agent header is possbily a bot.

Example

use Is::Bot qw(is_bot);
is_bot('axios'); # true
is_bot('Mozilla/5.0 (X11; Linux x86_64; rv:109.0)'); # false

or

Is::Bot->is_bot('axios'); # true

or

Is::Bot::is_bot('axios'); # true

API

is_bot

Determines if the given string (only parameter) is a bot or not.

License

Is::Bot is provided under the Artistic 2.0 license.