PHPackages                             bluenest/laravel-ip-restriction-middleware - 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. bluenest/laravel-ip-restriction-middleware

ActiveLibrary

bluenest/laravel-ip-restriction-middleware
==========================================

Laravel middleware to allow restricting HTTP requests by IP addresses.

042PHP

Since Jan 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/digitalowlnyc/IP-Access-Restriction-Laravel-Package)[ Packagist](https://packagist.org/packages/bluenest/laravel-ip-restriction-middleware)[ RSS](/packages/bluenest-laravel-ip-restriction-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

bluenest/laravel-ip-restriction-middleware
==========================================

[](#bluenestlaravel-ip-restriction-middleware)

Laravel middleware for restricting HTTP access by IP address or addresses.

Installation
============

[](#installation)

Add via composer:

`composer require bluenest/laravel-ip-restriction-middleware`

Then add the following middleware in app/Http/kernel.php:

```
\BlueNest\Laravel\Http\Middleware\IpRestrictionMiddleware::class,
```

Configuration
=============

[](#configuration)

Add the following configuration settings in your .env file:

```
IP_ACCESS_ALLOW_DENY_DEFAULT=DENY
IP_ACCESS_BLACKLIST=
IP_ACCESS_WHITELIST=127.0.0.1
IP_ACCESS_DENY_MESSAGE="Please contact an administrator"
IP_ACCESS_DENY_HTTP_STATUS_CODE=500
IP_ACCESS_LOG_DENIALS=true

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1697fa151d31dd68358e6d457a7b86d8b751b42ee338f27afa19975248ef1b63?d=identicon)[bluenestbryan](/maintainers/bluenestbryan)

---

Top Contributors

[![digitalowlnyc](https://avatars.githubusercontent.com/u/1157062?v=4)](https://github.com/digitalowlnyc "digitalowlnyc (4 commits)")

### Embed Badge

![Health badge](/badges/bluenest-laravel-ip-restriction-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/bluenest-laravel-ip-restriction-middleware/health.svg)](https://phpackages.com/packages/bluenest-laravel-ip-restriction-middleware)
```

PHPackages © 2026

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