Download the PHP package webparking/laravel-limited-access without Composer
On this page you can find all versions of the php package webparking/laravel-limited-access. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webparking/laravel-limited-access
More information about webparking/laravel-limited-access
Files in webparking/laravel-limited-access
Package laravel-limited-access
Short Description Limited access for Laravel
License MIT
Informations about the package laravel-limited-access
Laravel limited access
This package provides an easy access-restricting layer for your Laravel application.
With limited access you can block or allow certain ip addresses on application level. You could also define a list of access codes to distribute between trusted users.
A few use-cases are:
- Set access codes for an application that is not ready to go live yet. For example an acceptance environment.
- Block malicious users from using your application. Simply add their ip addresses to the blocked list.
- Making a private application only a few users can access. Just block all ip addresses except your own.
Here's an example of what your login could look like when using access codes
Installation
Add this package to composer.
Publish assets:
Optional steps
Publish config:
Publish translations:
Or just publish all the things:
Usage
To use this package you need to enable it by either enabling the package in the config or adding the following to your .env file.
To add access codes add the following key to your .env file and specify your access codes in a comma separated list.
Blocking/Ignoring IP addresses
In config/limited-access
you can add single IP addresses or IP address ranges in CIDR format.
Example:
Blocked IPs take priority over ignored IPs, so adding the same address or range to both arrays will cause the given IP to be blocked.
You can leave both of these arrays empty if you wish for everyone to be prompted for a password.
Licence and Postcardware
This software is open source and licensed under the MIT license.
If you use this software in your daily development we would appreciate to receive a postcard of your hometown.
Please send it to: Webparking BV, Cypresbaan 31a, 2908 LT Capelle aan den IJssel, The Netherlands