PHPackages                             overflowsith/firewall - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. overflowsith/firewall

ActiveLibrary[Security](/categories/security)

overflowsith/firewall
=====================

simple, configuration based firewall for laravel

v0.1.1(11y ago)31041PHPPHP &gt;=5.4.0

Since Feb 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/overflowsith/firewall)[ Packagist](https://packagist.org/packages/overflowsith/firewall)[ RSS](/packages/overflowsith-firewall/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Installation
------------

[](#installation)

Add the package to your composer.json file and run `composer update`:

```
{
    "require": {
        "overflowsith/firewall": "dev-master"
    }
}
```

Add `Overflowsith\Firewall\FirewallServiceProvider` to your `app/config/app.php` file, inside the `providers` array.

Publish the package's config with `php artisan config:publish overflowsith/firewall`, so you can easily modify it in: `app/config/packages/overflowsith/firewall/config.php`

Usage
-----

[](#usage)

This firewall package can be use in the App::before filter

```
App::before(function($request)
{
    if (Firewall::isNotAllowed($request->ip())) {
        return Firewall::renderAccessDenied();
    }
});
```

Configuration
-------------

[](#configuration)

### Firewall status

[](#firewall-status)

- disabled: every IP is allowed
- permissive: only IP addresses that are not in the blacklist are allowed
- enforcing: an IP must be in the whitelist and not in the blacklist

### Whitelist and blacklist

[](#whitelist-and-blacklist)

You can set an array of IP addresses with or without wildcards, for example

```
   '127.0.0.1',
   '192.168.*',
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

4162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8263b0eac7416003ba870f0bed58719066c2391739641596aece9072d13c3e87?d=identicon)[overflowsith](/maintainers/overflowsith)

---

Tags

laravelblacklistfirewallwhitelist

### Embed Badge

![Health badge](/badges/overflowsith-firewall/health.svg)

```
[![Health](https://phpackages.com/badges/overflowsith-firewall/health.svg)](https://phpackages.com/packages/overflowsith-firewall)
```

###  Alternatives

[pragmarx/firewall

A Laravel IP whitelisting and blacklisting

1.4k1.0M](/packages/pragmarx-firewall)[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

1.0k508.9k2](/packages/akaunting-laravel-firewall)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
