Middleware to control the IPs that have access to the application.
- Allows adding multiple IPs.
- Defines a return URL in case the IP is not allowed.
Using Composer:
$ composer require luisinder/ip-control-middleware
Allowed IPs must be inside an array. The second parameter is the return URL in case of failure:
$app->add(new Luisinder\Middleware\IpControl(['::1','192.168.1.0','127.0.0.1'],"https://github.com"));