tauseedzaman/laravel-ip-location-block

a simple package for blocking ips from your laravel application

dev-master 2022-05-31 07:29 UTC

This package is auto-updated.

Last update: 2024-05-29 05:09:25 UTC


README

Package blacking/restricting IP's in laravel application

Demo

List of Restricted IP's List of restriced ips Add New IP add new ip to list

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

Leave a start if you like this

Thanks for using our service