Download the PHP package vcian/laravel-ip-gateway without Composer
On this page you can find all versions of the php package vcian/laravel-ip-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vcian/laravel-ip-gateway
More information about vcian/laravel-ip-gateway
Files in vcian/laravel-ip-gateway
Package laravel-ip-gateway
Short Description Blacklist or Whitelist IP of your application routes.
License MIT
Informations about the package laravel-ip-gateway
IP gateway for laravel
Features
-
The Laravel Ip gateway package helps you to blacklist or whitelist IP to prevent unauthorized access to your application.
- Since blacklists deny access to specific entities, they are best used when a limited number of items need to be denied access. When most entities need to be denied access, a whitelist approach is more efficient.
Requirements
PHP ^8.0
Installation
You can install the package via composer:
After installation, You need to publish the config file for this package. This will add the file config/ip-gateway.php
, where you can configure this package.
Config Usage (ip-gateway.php
)
-
enable_package
is used for enable/disable access protection. -
enable_blacklist
when its true that means, It will denied access for registered ips inip-list
, false means, It will allow accessing for registered ips inip-list
. -
You can authenticated IPs through register route groups in
middleware
. -
redirect_route_to
will access URL, To redirect if denied. -
You can define all your whitelist or blacklist IP addresses inside
ip-list
. - If you want to add IP gateway middleware in you custom middleware group then just define your custom middleware group inside
middleware
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Notes
You can create as many whitelists or blacklist groups as you wish to protect access