Download the PHP package viraxpress/restrict-registration without Composer
On this page you can find all versions of the php package viraxpress/restrict-registration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download viraxpress/restrict-registration
More information about viraxpress/restrict-registration
Files in viraxpress/restrict-registration
Package restrict-registration
Short Description Restrict Registration for ViraXpress
License Apache-2.0
Informations about the package restrict-registration
ViraXpress Restrict Registration
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:
-
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.