PHPackages                             msp/adminrestriction - 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. msp/adminrestriction

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

msp/adminrestriction
====================

Magento2 Admin IP based restriction - Member of MageSpecialist SecuritySuite

1.4.0(3y ago)15335.9k↓18%6[9 issues](https://github.com/magespecialist/m2-MSP_AdminRestriction/issues)2OSL 3.0PHPPHP ^7.0|^8.0.0|^8.1.0

Since Jul 15Pushed 3y ago5 watchersCompare

[ Source](https://github.com/magespecialist/m2-MSP_AdminRestriction)[ Packagist](https://packagist.org/packages/msp/adminrestriction)[ RSS](/packages/msp-adminrestriction/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (2)

MSP AdminRestriction
====================

[](#msp-adminrestriction)

Deny access to Magento backend from **unauthorized IPs**.

This module represents one of the **most effective Magento backend protection policy**.

> Member of **MSP Security Suite**
>
> See: [https://github.com/magespecialist/m2-MSP\_Security\_Suite](https://github.com/magespecialist/m2-MSP_Security_Suite)

Did you lock yourself out from Magento backend? [click here.](https://github.com/magespecialist/m2-MSP_AdminRestriction#emergency-commandline-disable)

Installing on Magento2:
-----------------------

[](#installing-on-magento2)

**1. Install using composer**

From command line:

`composer require msp/adminrestriction`
`php bin/magento setup:upgrade`

**2. Enable and configure from your Magento backend config**

[![](https://raw.githubusercontent.com/magespecialist/m2-MSP_AdminRestriction/master/screenshots/config.png)](https://raw.githubusercontent.com/magespecialist/m2-MSP_AdminRestriction/master/screenshots/config.png)

Emergency commandline disable:
------------------------------

[](#emergency-commandline-disable)

If you messed up with IP list, you can disable or change authorized ip list from command-line:

**Disable filter:**

`php bin/magento msp:security:admin_restriction:ip disable`

**Authorize a new IP list:**

`php bin/magento msp:security:admin_restriction:ip 127.0.0.1,192.168.0.0/24`

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~215 days

Recently: every ~443 days

Total

11

Last Release

1439d ago

Major Versions

0.1.3 → 1.0.02017-05-31

PHP version history (4 changes)0.1.0PHP ~5.5.0|~5.6.0|~7.0.0

1.0.0PHP ~7.0.0

1.2.1PHP ^7.0|^7.1

1.4.0PHP ^7.0|^8.0.0|^8.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3977029?v=4)[MageSpecialist](/maintainers/magespecialist)[@magespecialist](https://github.com/magespecialist)

---

Top Contributors

[![phoenix128](https://avatars.githubusercontent.com/u/10189093?v=4)](https://github.com/phoenix128 "phoenix128 (11 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (1 commits)")[![slackerzz](https://avatars.githubusercontent.com/u/3061752?v=4)](https://github.com/slackerzz "slackerzz (1 commits)")

### Embed Badge

![Health badge](/badges/msp-adminrestriction/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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