PHPackages                             vcian/laravel-ip-gateway - 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. vcian/laravel-ip-gateway

ActiveLibrary[Security](/categories/security)

vcian/laravel-ip-gateway
========================

Blacklist or Whitelist IP of your application routes.

v2.2.0(1y ago)439499MITPHPPHP ^8.2

Since Jan 11Pushed 1y ago2 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

IP gateway for laravel
======================

[](#ip-gateway-for-laravel)

[![Software License](https://camo.githubusercontent.com/9897f4467850972a38c7db9a4d38280b8fcdac0ada00e9c8c0a72ecfa8551653/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/73d19a0c23f3bb19000e962585b3246681eea9dc62d99955d800ea46d2d0ceef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766369616e2f6c61726176656c2d69702d676174657761793f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/vcian/laravel-ip-gateway)

Features
--------

[](#features)

- The Laravel Ip gateway package helps you to blacklist or whitelist IP to prevent unauthorized access to your application.
- Since blacklists deny access to specific entities, they are best used when a limited number of items need to be denied access. When most entities need to be denied access, a whitelist approach is more efficient.

Requirements
------------

[](#requirements)

PHP ^8.0

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

[](#installation)

You can install the package via composer:

```
composer require vcian/laravel-ip-gateway
```

After installation, You need to publish the config file for this package. This will add the file `config/ip-gateway.php`, where you can configure this package.

```
php artisan vendor:publish
```

### Config Usage (`ip-gateway.php`)

[](#config-usage-ip-gatewayphp)

- `enable_package` is used for enable/disable access protection.
- `enable_blacklist` when its true that means, It will denied access for registered ips in `ip-list`, false means, It will allow accessing for registered ips in `ip-list`.
- You can authenticated IPs through register route groups in `middleware`.
- `redirect_route_to` will access URL, To redirect if denied.
- You can define all your whitelist or blacklist IP addresses inside `ip-list`.
- If you want to add IP gateway middleware in you custom middleware group then just define your custom middleware group inside `middleware`

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Notes
-----

[](#notes)

**You can create as many whitelists or blacklist groups as you wish to protect access**

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 57.7% 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 ~512 days

Total

5

Last Release

627d ago

Major Versions

1.0.0 → v2.0.02023-04-12

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

v2.0.0PHP ^8.0

v2.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f19733b75e0a9bb01c70ec6302be389d4440d8afce378f998ea371ac6cfbb17a?d=identicon)[vcian](/maintainers/vcian)

---

Top Contributors

[![ruchit288](https://avatars.githubusercontent.com/u/28095255?v=4)](https://github.com/ruchit288 "ruchit288 (15 commits)")[![vc-bharat](https://avatars.githubusercontent.com/u/127181427?v=4)](https://github.com/vc-bharat "vc-bharat (5 commits)")[![viitoradmin](https://avatars.githubusercontent.com/u/27955915?v=4)](https://github.com/viitoradmin "viitoradmin (4 commits)")[![vc-dhavaljoshi](https://avatars.githubusercontent.com/u/37901172?v=4)](https://github.com/vc-dhavaljoshi "vc-dhavaljoshi (2 commits)")

---

Tags

ipipaddressipblockipblocklistipwhitelistlaravellaravel-frameworkphplaravelIPblacklistwhitelistipgatewayIP FilteringIP Restriction LaravelLaravel IP Security

### Embed Badge

![Health badge](/badges/vcian-laravel-ip-gateway/health.svg)

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

###  Alternatives

[pragmarx/firewall

A Laravel IP whitelisting and blacklisting

1.4k988.9k](/packages/pragmarx-firewall)[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[mchev/banhammer

Banhammer for Laravel allows you to ban any Model by key and by IP.

36693.4k2](/packages/mchev-banhammer)

PHPackages © 2026

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