NAME
PAGI::FastAPI::BotProtection - Base Interface for PAGI::FastAPI Bot Protection
VERSION
Version v1.0.0
SYNOPSIS
use PAGI::FastAPI;
my $app = PAGI::FastAPI->new();
# Enables default Proof-of-Work bot mitigation
$app->add_bot_protection(
difficulty => 3,
secret => $ENV{BOT_PROTECTION_SECRET},
);
DESCRIPTION
PAGI::FastAPI::BotProtection serves as the base interface for bot mitigation mechanisms in PAGI::FastAPI.
By default, the framework utilises PAGI::FastAPI::BotProtection::ProofOfWork to issue stateless cryptographic challenges to unverified clients, shielding API routes from scrapers, credential stuffers, and automated flood bots.
SUBCLASSES
PAGI::FastAPI::BotProtection::ProofOfWork
Default stateless SHA-256 HMAC Proof-of-Work challenge engine.
SEE ALSO
PAGI::FastAPI::Middleware::BotProtection, PAGI::FastAPI::BotProtection::ProofOfWork, PAGI::FastAPI
AUTHOR
Mohammad Sajid Anwar, <mohammad.anwar at yahoo.com>
BUGS
Please report any bugs or feature requests through the web interface at https://github.com/manwar/PAGI-FastAPI/issues. I will be notified and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc PAGI::FastAPI::BotProtection
You can also look for information at:
BUG Report
CPAN Ratings
Search MetaCPAN
LICENSE AND COPYRIGHT
Copyright (C) 2026 Mohammad Sajid Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License (2.0).