Magento 2 Store Restriction Pro
This extension provides the complete restriction functionality for your store in many ways (disabling registration, requiring customer approval, restricting access to special customers while allowing guest access to certain pages)
Compatibility
Community: 2.1, 2.2, 2.3, 2.4Enterprise: 2.1, 2.2, 2.3, 2.4
Complete store restriction and access control for Magento 2 — disable registration, require customer approval, and restrict store access to logged-in customers of specific groups while allowing guest access to selected pages.
The Problem
Magento 2 has no built-in way to restrict store access to specific customer groups, require admin approval for new accounts, or disable registration. Building a B2B, private-sale, or member-only store requires extensive custom development.
The Solution
This extension provides a complete access-control layer: disable registration, approve/reject customers, restrict pages to specific groups, and redirect unauthorized users — all from admin configuration. No code changes needed.
Key Features
Feature Highlights
1. Disable Customer Registration
Block storefront registration entirely with a configurable custom message. Ideal for B2B stores where the admin creates customer accounts manually from the backend.

2. Customer Group Selector (Bundled Free)
Includes the Group Selector/Switcher Pro extension at no additional cost. Customers can select their group at registration via dropdown or invite code.

3. Customer Approval / Activation
Require admin approval before new customers can access the store. Essential for B2B and B2C stores that need to verify customer identity or business credentials before granting access.
- Enable/disable customer approval per store view
- Configure which customer groups require admin approval
- Option to auto-approve new registrations
- Easy approve/reject actions in admin customer grid
- Email notification to admin on new registration (configurable template)
- Email notification to customer on approval or rejection (configurable template)
- Custom message and redirect for non-approved customers (HTML supported)



4. Store Access Restriction
Restrict CMS, category, product, or any other pages to logged-in customers of specific groups. Unauthorized users are redirected to a custom landing page with a configurable message. Two restriction modes are available:
| Mode | Behavior |
|---|---|
| Non-Restricted | Store is fully accessible to all users (default Magento behavior) |
| Restricted | Store requires login. Only selected customer groups can access. Specific CMS, category, product & custom module pages can be allowlisted for guest access. |
Restricted Mode Options
- Select which customer groups can access the restricted store
- Redirect unauthorized users to login page, CMS page, or any custom URL
- Display a custom restriction message (HTML supported)
- Allowlist specific CMS pages, categories, products & custom routes for guest access

Installation
src/ folder to your {magento2-root-dir}/php bin/magento module:enable MagePsycho_StoreRestrictionPro MagePsycho_GroupSwitcherPro --clear-static-content
php bin/magento setup:upgrade
php bin/magento cache:flush
Live Demo
v1.0.6
released on 2020-04-24- added Added html tag support in custom messages
v1.0.5
released on 2020-04-15- fixed Fixed the /customer/account/createPassword bug
v1.0.4
released on 2020-04-11- added Added customer activation/approval feature
- changed Refactored the code
- added Tested the compatibility with Magento v2.3.4
v1.0.3
released on 2019-11-12- changed Refactored the code
- changed Fixed the system configuration tab issue
- added Tested the compatibility with Magento v2.3.3
v1.0.2
released on 2019-05-23- fixed Fixed redirection issue from homepage
- fixed Fixed registration disabled case
- added Compatibility tested with Magento v2.3.x
v1.0.0
released on 2017-06-12- added Initial Release
Generic
How can I pay for MagePsycho extensions?
If I buy an extension, how would I get it?
After you make a purchase, the order will appear in the "My Orders" section of your personal account page.
As soon as the order status becomes completed the purchased extensions can be downloaded from "My Downloads" section.
How can I get the license key(s) for the purchased extension?
In case if you have't received any license key(s), please Contact Us with the order #.
Are your extensions open source or encrypted?
Do you provide Magento customization service?
Can I get a refund if an extension doesn’t suit me?
After 30 days from the date of purchase, the refund is not applied. You also cannot ask for a refund for the installation service or custom service.
If you are looking for a specific solution for your store, please Contact Us.Can I request a free trial?
But if you buy an extension and it doesn’t suit you in any way, you can request a refund with no risks on your side.
Moreover, most of our extensions have demos, where you can see how our modules work.
What is the license policy? On how many websites can I use MagePsycho extensions?
In the case of additional licenses, we do provide a good discount.








