devworkout / bothound
dev-master
2023-02-03 19:41 UTC
Requires
Requires (Dev)
- larapack/dd: ^1.0
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2025-03-01 00:26:45 UTC
README
Detect crawlers by User Agent, Referer or IP.
Installation
You can install the package via composer:
composer require devworkout/bothound php artisan migrate
Usage
// Check User Agent, Referer, IP if ( $networkName = app( 'bothound' )->identifyBot( $userAgent, $referer, $ip ) ) { dd($networkName); } app('bothound')->rememberBot('1.2.3.4','facebook');
In Console Kernel:
$schedule->command( 'bothound:optimize' )->daily();
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email us instead of using the issue tracker.
Credits
Support us
Give us a star!
License
The MIT License (MIT). Please see License File for more information.