PHPackages                             webtoppings/ipwhitelisting - 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. webtoppings/ipwhitelisting

ActiveLaravel-package

webtoppings/ipwhitelisting
==========================

Restrict access to website by whitelisting ip addresses

11.3kPHP

Since Jul 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/patelparixit07/ipwhitelisting)[ Packagist](https://packagist.org/packages/webtoppings/ipwhitelisting)[ RSS](/packages/webtoppings-ipwhitelisting/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

IP Whitelisting
===============

[](#ip-whitelisting)

Simple Laravel Package to increase the security of the website by permitting access for users having whitelisted IP Addresses.

In this package, you can add IP Addresses into whitelist which you want to allow access to your site. All other users coming from IPs which are not in whitelist will automatically blocked and won't access site.

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

[](#installation)

via composer

```
composer require webtoppings/ipwhitelisting
```

Supports
--------

[](#supports)

Laravel 5.5 or higher

Configure
---------

[](#configure)

Run below commands to publish views and migrate tables

```
php artisan vendor:publish

php artisan migrate
```

Usage
-----

[](#usage)

### Manage Whitelist

[](#manage-whitelist)

Add below route to your administrator route group to manage whitelist IP Addresses

```
Route::resource('/ipwhitelisting', '\WebToppings\IPWhitelisting\IPWhitelistingController');
```

### Restrict Access

[](#restrict-access)

Use middleware to restrict IP Addresses

```
'IPBlocking' => \WebToppings\IPWhitelisting\Middlewares\IPBlocking::class,
```

Add `IPBlocking` middleware to route group for which you want to restrict access.

Users will be redirect to "403 | Forbidden" page if their IP won't exist on whitelist.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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/81d892403f82714e2bfe58dd30c674a9febaed7d0fb15d9deb29ae80dc63051d?d=identicon)[webtoppings](/maintainers/webtoppings)

---

Top Contributors

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

---

Tags

ipblockingipwhitelistlaravellaravel-package

### Embed Badge

![Health badge](/badges/webtoppings-ipwhitelisting/health.svg)

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

PHPackages © 2026

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