laravel-bot-block maintained by marcvanh
Description
A custom middleware package for Laravel. Temporarily blocks crawlers scanning for vulnerabilities.
Author
Last update
2026/10/30 14:21
(dev-main)
License
Downloads
6 181
Laravel Bot Block
A custom middleware package for Laravel. It monitors incoming requests, watching for bots/crawlers scanning for vulnerabilities. Any bot activity and the crawler is blocked for a specified amount of time (10 minutes by default). The end result is a pretty good defense against probing scripts, crawlers and bots.
Supports Cloudflare & other Proxies
Installation
-
Install the package via Composer:
composer require marcvanh/laravel-bot-block -
(Optional) Publish the configuration file (for customization):
php artisan vendor:publish --provider="Marcvanh\LaravelBotBlock\LaravelBotBlockServiceProvider"
ideas: move "illuminate/support" to require-dev consider only "web" group for middleware: // $kernel->pushMiddlewareToGroup('web', \Marcvanh\LaravelBotBlock\Middleware\BotBlockMiddleware::class);