PHPackages                             alitindrawan24/laravel-ip-whitelist - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. alitindrawan24/laravel-ip-whitelist

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

alitindrawan24/laravel-ip-whitelist
===================================

0.1.2(3y ago)5273MITPHPPHP ^7.4|^8.0

Since May 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Alitindrawan24/laravel-ip-whitelist)[ Packagist](https://packagist.org/packages/alitindrawan24/laravel-ip-whitelist)[ RSS](/packages/alitindrawan24-laravel-ip-whitelist/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

laravel-ip-whitelist
====================

[](#laravel-ip-whitelist)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ca06eeffe2636ada65af40525a17c208f1c69535f1f51a5b83a1826248871d57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6974696e64726177616e32342f6c61726176656c2d69702d77686974656c6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alitindrawan24/laravel-ip-whitelist)[![Total Downloads](https://camo.githubusercontent.com/675f8d8f279b54837286b8145571c6b81195a6cf3ce405ac3e37bb1ba1baf97f/68747470733a2f2f706f7365722e707567782e6f72672f616c6974696e64726177616e32342f6c61726176656c2d69702d77686974656c6973742f646f776e6c6f616473)](https://packagist.org/packages/alitindrawan24/laravel-ip-whitelist)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Laravel IP Whitelist is a package contain middleware to allow a list of IP addresses to access a specific web resource.

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

[](#installation)

You can install the package via composer:

```
composer require alitindrawan24/laravel-ip-whitelist
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Alitindrawan24\IPWhitelist\IPWhitelistServiceProvider" --tag="config"
```

By default the IP Whitelist feature is disabled, to enable the feature you add this in your .env

```
IP_WHITELIST_ENABLE=true
```

You can add the list of IP that allowed in config/ip-whitelist.php using fix IP or using wildcard

```
/**
 * List of IP Whitelist.
 * Only IP in this list is allowed to pass the middleware.
 */
'ip_whitelist' => [
    // '127.0.0.1' // Localhost example
    // '127.0.0.*' // Using Wildcard example
],
```

Usage
-----

[](#usage)

This packages provides a middleware which can be added as a global middleware or as a single route.

```
// in `app/Http/Kernel.php`

protected $middleware = [
    // ...

    \Alitindrawan24\IPWhitelist\Middleware\HttpLogger::class
];
```

```
// in a routes file

Route::post('/dashboard', function () {
    //
})->middleware(\Alitindrawan24\IPWhitelist\Middleware\HttpLogger::class);
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/MarketingPipeline/README-Quotes/blob/main/LICENSE) file for details.

Contributors
------------

[](#contributors)

[ ![](https://camo.githubusercontent.com/0cf7f19e7fb58a30e8f3fa9cec4d36775e329b2747f2cc383c3740e8385d287e/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d416c6974696e64726177616e32342f6c61726176656c2d69702d77686974656c697374)](https://github.com/Alitindrawan24/laravel-ip-whitelist/graphs/contributors)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53dae3d0541322e98504aed3af77d3efe7151aaedbe05780e6289ac5be7d7f0f?d=identicon)[Alitindrawan24](/maintainers/Alitindrawan24)

---

Top Contributors

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

---

Tags

ip-whitelistlarave-packagemiddleware

### Embed Badge

![Health badge](/badges/alitindrawan24-laravel-ip-whitelist/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[olssonm/l5-very-basic-auth

Laravel stateless HTTP basic auth without the need for a database

1662.5M1](/packages/olssonm-l5-very-basic-auth)[stechstudio/laravel-jwt

Helper package that makes it easy to generate, consume, and protect routes with JWT tokens in Laravel

126117.6k](/packages/stechstudio-laravel-jwt)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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