marcvanh / laravel-bot-block
A custom middleware package for Laravel. Temporarily blocks crawlers scanning for vulnerabilities.
Installs: 1 082
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
README
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"