viraxpress/restrict-registration

Restrict Registration for ViraXpress

Maintainers

Package info

github.com/viraxpress/RestrictRegistration

Type:magento2-module

pkg:composer/viraxpress/restrict-registration

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-06-11 12:00 UTC

This package is auto-updated.

Last update: 2026-06-11 13:03:25 UTC


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

  1. Install the extension via Composer:

    composer require viraxpress/restrict-registration
  2. 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
    
  3. In the Magento admin, go to Stores > Configuration and locate the ViraXpress tab.

  4. Open Restrict Registration.

  5. Enable and configure either or both of the following groups:

    • Restrict Registration For Email Domains
    • Restrict Registration For Customer IP Address
  6. 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.