Skip to content

luisinder/ip-control-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

IP Control Middleware

Latest Stable Version Total Downloads

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.

Installation

Using Composer:

$ composer require luisinder/ip-control-middleware

Use

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"));

About

Middleware to control access by IP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages