2017 © Pedro Peláez
 

library laravel-ip-restriction-middleware

Laravel middleware to allow restricting HTTP requests by IP addresses.

image

bluenest/laravel-ip-restriction-middleware

Laravel middleware to allow restricting HTTP requests by IP addresses.

  • Monday, January 15, 2018
  • by bluenestbryan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

bluenest/laravel-ip-restriction-middleware

Laravel middleware for restricting HTTP access by IP address or addresses., (*1)

Installation

Add via composer:, (*2)

composer require bluenest/laravel-ip-restriction-middleware, (*3)

Then add the following middleware in app/Http/kernel.php:, (*4)

\BlueNest\Laravel\Http\Middleware\IpRestrictionMiddleware::class,

Configuration

Add the following configuration settings in your .env file:, (*5)

IP_ACCESS_ALLOW_DENY_DEFAULT=DENY
IP_ACCESS_BLACKLIST=
IP_ACCESS_WHITELIST=127.0.0.1
IP_ACCESS_DENY_MESSAGE="Please contact an administrator"
IP_ACCESS_DENY_HTTP_STATUS_CODE=500
IP_ACCESS_LOG_DENIALS=true

The Versions

15/01 2018

dev-master

9999999-dev

Laravel middleware to allow restricting HTTP requests by IP addresses.

  Sources   Download

MIT

by Bryan Mayor

15/01 2018

dev-add-license-1

dev-add-license-1

Laravel middleware to allow restricting HTTP requests by IP addresses.

  Sources   Download

by Bryan Mayor

14/01 2018

dev-release

dev-release

Laravel middleware to allow restricting HTTP requests by IP addresses.

  Sources   Download

by Bryan Mayor