📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v2.1.4

Magento 2 Customer Restriction

magekey/module-customer-restriction

Restricts customer registration and login based on email patterns defined in the Magento configuration. Allows setting custom error messages for restricted access.

37,002
Downloads
Below average
15
GitHub Stars
Below average
7y ago
Last Release
1
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
1 error , 25 warnings
L3 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v2.1.4 on Magento 2.4.8-p3
Dec 29, 2025

Share This Module's Status

Magento 2 Customer Restriction Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Customer Restriction

Features:

Navigate to Stores > Configuration > Customers section > Customer Restriction

  • Customer Registration
    • restriction by email patterns
    • set error message
  • Customer Login
    • restriction by email patterns
    • set error message

Installing the Extension

composer require magekey/module-customer-restriction

Deployment

php bin/magento maintenance:enable                  #Enable maintenance mode
php bin/magento setup:upgrade                       #Updates the Magento software
php bin/magento setup:di:compile                    #Compile dependencies
php bin/magento setup:static-content:deploy         #Deploys static view files
php bin/magento cache:flush                         #Flush cache
php bin/magento maintenance:disable                 #Disable maintenance mode

Versions tested

2.1.12

2.2.3

2.3.1

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.