Download the PHP package solution-forest/filament-firewall without Composer
On this page you can find all versions of the php package solution-forest/filament-firewall. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solution-forest/filament-firewall
More information about solution-forest/filament-firewall
Files in solution-forest/filament-firewall
Package filament-firewall
Short Description This is a middleware for whitelisting/blacklisting for Filament Admin
License MIT
Homepage https://github.com/solution-forest/filament-firewall
Informations about the package filament-firewall
[!IMPORTANT] Please note that we will only be updating to version 2.x, excluding any bug fixes.
About Solution Forest
Solution Forest Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Soruces.
We have built a collection of best-in-class products:
- VantagoAds: A self manage Ads Server, Simplify Your Advertising Strategy.
- GatherPro.events: A Event Photos management tools, Streamline Your Event Photos.
- Website CMS Management: Website CMS Management - Filament CMS Plugin
- Filaletter: Filaletter - Filament Newsletter Plugin
Filament Firewall
This package provides a whitelist and blacklist feature to restrict access to your Laravel application and Filament admin panel. For additional functionality, please refer to the Laravel Firewall package.
Getting Started
-
Install the package using the
composer require
command: -
To publish the configuration files and migrations files for this plugin, as well as automatically run migration, enter the following command:
-
This package comes with
WhitelistRangeMiddleware
. You need to register it in$middleware
in theapp\Http\Kernel.php
file: - You can change the setting in the
config/filament-firewall.php
file to skip the middlewareWhitelistRangeMiddleware
check. - Register the plugin in your Panel provider:
Important: Register the plugin in your Panel provider after version 2.x
Usage
- On the IP Firewall page, you have the ability to add IPs to either a whitelist or a blocklist. The
WhitelistRangeMiddleware
middleware will automatically handle whitelist IP access. If you need to block a range of IPs while allowing a specific IP, such as blocking 172.19.0.0/24 except for 172.19.0.1, you'll need to create a new Deny access record and specify the IP and prefix as '172.19.0.0' and '24'. Additionally, you'll need to add an Allow access record for the specific IP '172.19.0.1'.
-
Get whitelist / blacklist records
- Determine whether an IP address is included in a whitelist or blacklist
Publishing translations
Security Vulnerabilities
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
Please see License File for more information.
Credits
All versions of filament-firewall with dependencies
akaunting/laravel-firewall Version ^2.2
filament/filament Version ^3.0
filament/support Version ^3.0
spatie/laravel-package-tools Version ^1.15.0