m6web/firewall-bundle
Symfony bundle that adds a simple IP-based firewall to your app. Define whitelists of allowed addresses per path or host and return a custom response to blocked requests, keeping staging, admin, or private areas locked down with minimal configuration.
TrustedProxy handling, and route/group-level guards; Symfony gives IpUtils, request listeners, and access_control IP matchers. Any of these supersedes the bundle with code your team already owns.Consider (narrowly):
Look elsewhere (the default):
allow/deny, cloud WAF, CDN rules), not in application middleware. An app-layer filter still pays the full cost of accepting the connection and bootstrapping the framework.Recommendation: do not adopt. Build the capability natively; use the package only as a design reference.
How can I help you explore Laravel packages today?