marcvanh/laravel-bot-block

A custom middleware package for Laravel. Temporarily blocks crawlers scanning for vulnerabilities.

1.0.8 2025-02-20 16:51 UTC

This package is auto-updated.

Last update: 2025-06-20 17:33:15 UTC


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

  1. Install the package via Composer:

    composer require marcvanh/laravel-bot-block
  2. (Optional) Publish the configuration file (for customization):

    php artisan vendor:publish --provider="Marcvanh\LaravelBotBlock\LaravelBotBlockServiceProvider"