{"repo":"Potelo/laravel-block-bots","free":true,"listed":false,"github":"https://github.com/Potelo/laravel-block-bots","clone":"git clone https://github.com/Potelo/laravel-block-bots.git","description":"Block crawlers and high traffic users on your site by IP using Redis","language":"PHP","stars":54,"topics":["crawlers","laravel","bots","scrapper"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Laravel Block Bots [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Total Downloads][ico-downloads]][link-downloads] Introduction Laravel Block bots is a package that blocks bad crawlers, people trying to scrape your website or high-usage users, but lets good and important crawlers such as GoogleBot and Bing pass through. Features - ULTRA fast, less than 1ms increase in each request. - Verify Crawlers using reverse DNS - Highly configurable - Redirect users to a page when they got blocked - Allow Logged users to always bypass blocks - Native IPv6 support with prefix-based rate limiting Install Via Composer Requirement - This package relies heavily on Redis. To use it, make sure that Redis is configured and ready. (see Laravel Redis Configuration) Before Laravel 5.5 In Laravel 5.4, you'll manually need to register the \\Potelo\\LaravelBlockBots\\BlockBots::class service provider in config/app.php . Config To adjust the library, you can publish the config file to your project using: Configure variables in your .env file: Usage It's simple. Go to Kernel.php and add to the $routeMiddleware block as: Then you can put it in the desired groups. For example, let's set it to the web group: Where: - 100 : is the number of pages an IP can access every day - daily : is the time period. Options: hourly , daily , weekly , monthly , annually IPv6 Support This package has native IPv6 support with prefix-based rate limiting . Why Pre","default_branch":null,"files":null,"tree":[],"storefront":"/r/Potelo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Potelo/laravel-block-bots/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}