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)6278MITPHPPHP ^7.4|^8.0

Since May 6Pushed 3y 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 yesterday

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1155d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36658186?v=4)[Alit Indrawan ](/maintainers/Alitindrawan24)[@Alitindrawan24](https://github.com/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

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.2k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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