vendic/magento2-adminrestriction
Composer 安装命令:
composer require vendic/magento2-adminrestriction
包简介
Magento2 Admin IP based restriction - Member of MageSpecialist SecuritySuite
README 文档
README
Protect your Magento backend by restricting access based on IP addresses.
This module provides comprehensive admin security by working with Magento's Two-Factor Authentication (2FA) system:
- Without 2FA enabled: Access is only allowed from whitelisted IPs
- With 2FA enabled:
- Users on whitelisted IPs can login without using 2FA
- Users from non-whitelisted IPs are prompted for 2FA verification
Originally forked from magespecialist/m2-MSP_AdminRestriction
Why this fork?
This fork is maintained by Vendic to:
- Add compatibility with Magento's Two-Factor Authentication
- Provide ongoing maintenance and updates
- Ensure the module continues to work with recent Magento 2 versions
Installation
1. Install using composer
composer require vendic/magento2-adminrestriction
2. Enable and configure from your Magento backend config
Configuration
The module allows you to:
- Enable/disable IP restrictions
- Define a comma-separated list of allowed IPs or CIDR notations (e.g.,
127.0.0.1,192.168.0.0/24)
Two-Factor Authentication Integration
This module intelligently integrates with Magento's 2FA capabilities:
| IP Status | 2FA Status | Behavior |
|---|---|---|
| On whitelist | 2FA disabled | Access granted |
| On whitelist | 2FA enabled | Access granted without 2FA prompt |
| Not on whitelist | 2FA disabled | Access denied |
| Not on whitelist | 2FA enabled | 2FA verification required |
Emergency Command Line Access
If you've accidentally locked yourself out of the admin panel, you can use these commands:
Disable IP restrictions completely:
php bin/magento msp:security:admin_restriction:ip disable
Add new IP addresses to the whitelist:
php bin/magento msp:security:admin_restriction:ip 127.0.0.1,192.168.0.0/24
Maintenance
This module is actively maintained by Vendic. Issues and pull requests are welcome on our GitHub repository.
vendic/magento2-adminrestriction 适用场景与选型建议
vendic/magento2-adminrestriction 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.58k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vendic/magento2-adminrestriction 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vendic/magento2-adminrestriction 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL
- 更新时间: 2025-04-04
