• Firewall


Plugin information

by alan lam

Authentication Authorization Admin panel

Depends on akaunting/laravel-firewall, Manage Firewall under Filament Admin Panel.


#firewall on Discord






Filament Firewall

Latest Version on Packagist Total Downloads

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.

filament-firewall-package-1 filament-firewall-package-2

Getting Started

  1. Install the package using the composer require command:

    composer require solution-forest/filament-firewall
  2. To publish the configuration files and migrations files for this plugin, as well as automatically run migration, enter the following command:

    php artisan filament-firewall:install
  3. This package comes with WhitelistRangeMiddleware. You need to register it in $middleware in the app\Http\Kernel.php file:

    protected $middleware = [
  4. You can change the setting in the config/filament-firewall.php file to skip the middleware WhitelistRangeMiddleware check.


  • 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 except for, you'll need to create a new Deny access record and specify the IP and prefix as '' and '24'. Additionally, you'll need to add an Allow access record for the specific IP ''.


  • Get whitelist / blacklist records

    // whitelist
    // blacklist
  • Determine whether an IP address is included in a whitelist or blacklist

    // whitelist
    // blacklist

Publishing translations

php artisan vendor:publish --tag=filament-firewall-translations

Security Vulnerabilities

If you discover any security related issues, please email [email protected] instead of using the issue tracker.


Please see License File for more information.