Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Firewall Laravel Package

solution-forest/filament-firewall

Filament Firewall adds IP whitelist/blacklist protection for your Laravel app and Filament admin panel. Includes install command, config and migrations, plus middleware (e.g., WhitelistRangeMiddleware) to restrict access by allowed/blocked ranges.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enhanced Security for Admin Panels: Justify investment in a dedicated middleware solution for Filament Admin to enforce granular IP-based access controls (whitelisting/blacklisting), reducing reliance on generic firewall solutions or manual configurations.
  • Compliance & Risk Mitigation: Align with security policies (e.g., SOC 2, GDPR) by implementing IP-based restrictions for sensitive admin operations, reducing exposure to brute-force or unauthorized access attempts.
  • Build vs. Buy: Avoid custom development of IP filtering logic, saving engineering time while maintaining flexibility for future rule adjustments (e.g., dynamic IP lists, geo-blocking).
  • Multi-Tenant or High-Risk Environments: Prioritize for SaaS platforms or internal tools handling PII/financial data, where admin panel access must be tightly controlled.
  • Roadmap for Scalable Security: Phase in as part of a broader security initiative (e.g., post-breach remediation, pre-launch hardening) with extensibility for future features like rate-limiting or user-agent filtering.

When to Consider This Package

  • Use Case Fit:
    • Your Filament Admin panel requires IP-based access control (e.g., restricting access to specific offices, data centers, or trusted networks).
    • You need whitelisting/blacklisting without integrating third-party services (e.g., Cloudflare Firewall).
    • Your team lacks bandwidth to build/maintain custom middleware for IP filtering.
  • Look Elsewhere If:
    • You need beyond-IP controls (e.g., MFA, device fingerprinting, or behavioral analysis) → Consider packages like spatie/laravel-honeypot or laravel-breeze with custom middleware.
    • Your admin panel is low-risk (e.g., public-facing demo sites) → Built-in Laravel middleware (e.g., throttle) may suffice.
    • You require dynamic IP allowlists (e.g., user-specific rules) → Evaluate spatie/laravel-permission or custom logic.
    • Your stack uses non-Filament admin panels → Seek alternatives like laravel-trusted-proxy or owasp/csrf-defender.

How to Pitch It (Stakeholders)

For Executives:

"This lightweight middleware adds a critical layer of security to our Filament Admin panel by restricting access to predefined IP addresses—whitelisting trusted networks or blacklisting suspicious regions. It’s a low-code, high-impact way to harden our admin surfaces against unauthorized access, aligning with our compliance goals without requiring custom development. The MIT license and active maintenance (last release: Feb 2026) ensure long-term viability, with minimal overhead for implementation. For a one-time integration cost, we gain proactive protection against IP-based threats, reducing risk exposure for sensitive operations."

For Engineering:

*"Filament-Firewall provides a drop-in middleware for IP whitelisting/blacklisting in Filament Admin, leveraging Laravel’s native middleware stack. Key benefits:

  • Zero custom code: Configure rules via config/filament-firewall.php (supports CIDR ranges, regex, and dynamic lists).
  • Performance: Lightweight (~500 LOC) with no external dependencies beyond Filament/Laravel.
  • Extensible: Hook into FilamentFirewall::before/after events for custom logic (e.g., logging, notifications).
  • Integration: Works alongside Filament’s existing auth (e.g., add to protected routes in web.php). Tradeoff: Limited to IP-based controls—pair with Filament’s built-in auth for full coverage. Ready to demo in 1–2 hours."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony