tauseedzaman / laravel-ip-location-block
a simple package for blocking ips from your laravel application
dev-master
2022-05-31 07:29 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
This package is auto-updated.
Last update: 2025-03-29 01:04:10 UTC
README
Package blacking/restricting IP's in laravel application
Demo
List of Restricted IP's
Add New IP
Installation
You can install the package via composer:
composer require tauseedzaman/laravel-ip-blocker
Configuratoin
first publish the views
php artisan vendor:publish
then look for
tauseedzaman\LaravelIpBlocker\IpBlockerServiceProvider
and choose that number and hit enter
Now add run the migrations
php artisan migrate
Now add the following to App\Http\Kernel.php in the $middleware group at first position
\tauseedzaman\LaravelIpBlocker\Middleware\IpBlockerMiddleware::class
Now thats's set you can view the GUI in
yourDoman.test/restricted-ips