viraxpress / restrict-registration
Restrict Registration for ViraXpress
Package info
github.com/viraxpress/RestrictRegistration
Type:magento2-module
pkg:composer/viraxpress/restrict-registration
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0
README
Magento 2 extension to block customer account creation by email domain or IP address.
Description
ViraXpress_RestrictRegistration adds registration restrictions for Magento 2 stores by preventing new customer account creation when the registering email matches a blocked domain or when the request originates from a blocked IP address.
The extension supports backend configuration for both restriction types, including custom error messages shown to users when registration is denied.
Features
- Block customer registration by email domain.
- Block customer registration by IP address.
- Configure custom error messages for each restriction.
- Admin UI fields for managing multiple restricted domains and IP addresses.
- Works for both standard frontend registration and API-based account creation.
Compatibility
-- Magento: 2.4.x
Installation
-
Install the extension via Composer:
composer require viraxpress/restrict-registration
-
Run the following commands from your Magento root directory:
php bin/magento module:enable ViraXpress_RestrictRegistration php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
-
In the Magento admin, go to
Stores > Configurationand locate theViraXpresstab. -
Open
Restrict Registration. -
Enable and configure either or both of the following groups:
Restrict Registration For Email DomainsRestrict Registration For Customer IP Address
-
Save configuration.
Configuration
Enable To Email Restrict: enable or disable email domain restrictions.Email Domains To Restrict: add blocked email domains (example:qq.com).Message to Display: optional custom error message for blocked email domains.Enable To Customer IP Address Restrict: enable or disable IP address restrictions.Customer IP Address Restrict: add blocked IP addresses (example:104.56.34.134).Message to Display: optional custom error message for blocked IP addresses.
Support
For support, please contact ViraXpress at https://www.viraxpress.com or refer to the license agreement.
License
This extension is licensed under the ViraXpress license agreement. See https://www.viraxpress.com/license for details.