Required Login for Magento 2


Magento 2 Required Login / Customer Force Sign-in is the supportive login extension. This module allows the store owner to restrict access to specific pages and set information visibility to registered users only. This module supports online stores to manage users and protect store information better.

  • Restrict access to login customers only
  • Set login requirement to any pages
  • Redirect customers to targeted pages
  • Allow/ Disallow visitors to create accounts
  • Properly compatible with Mageplaza extensions: Social Login, OneStepCheckout
  • Looking for REST API, GraphQL? ETA: 2-4W Chat now.


60-day Money Back

Lifetime Update

365-day Support

Magento 2 Required Login for Magento 2.2.x, 2.3.x, 2.4.x

2.2.x, 2.3.x, 2.4.x

Live Demo


You've just added this product to the cart:

Required Login

Required Login for Magento 2

You've just added this product to the cart:

Required Login Pro

Required Login for Magento 2

Benefits of required login

To reach the whole/ a part of information on a site, visitors are allowed to log in. As a result, store owners can have the control of the access situation easily. To some extent, the site will be protected better from ill-intentioned and unknown access.

Required Login means that customers have to create accounts in a store. Therefore, the store owners easily collect customers’ data (e.g. email addresses). This facilitates very helpfully to the store’s promotion campaigns.

Such information as privacy policy, about us, price or even product details are sensitive and even unique to any business. Therefore, the allowance to access these info needs to be stricter. Therefore, required login is the solution in this case.

Restrict access to login visitors only

Mageplaza Required Login is the add-on tool which is applied to specific pages, and the visitors who would like to view the page’s information has to log in their accounts first.

The interface of login box is familiar and friendly to any users. Users are required to fill in their email address and password of their already-registered account. If the login is processed successfully, the page will become accessible.

Set login requirement to any pages

Required login allows store owners to select multiple pages without limitation to require signing in action. Force login can be applied with any types of pages.
With Default pages, Required Login can be applied to:

  • Product View Page
  • Category Page
  • Checkout Cart Page
  • Checkout Onepage
  • Catalog Search Page
  • Contact Page

Besides, all the CMS Pages such as Home page, Privacy Policy, Customer Service, About Us can easily selected from admin backend.

Especially, admins can set custom pages URL including specific strings which either require login or freely access.

Redirect customers to targeted pages

One noticeable feature of Required Login is redirecting function. After customers successfully log in their accounts, they will be redirected to a specific page. Admins can configure the destination URL with various options:

  • Use Customer configuration
  • Customer dashboard
  • Home page
  • Previous Page

This is useful feature which store owners can take advantages to lead customers to targeted pages for particular purposes such as making promotion or product introduction with the aim to encourage further purchases or for any purposes.

Allow/ Disallow visitors to create accounts

It is possible that store owners can turn off creating account function. This means that only users who already have accounts have the ability to access a page. If not, they have no choice except for leaving that page because creating account is disabled.

This feature is helpful in case a store owner would like to make sure only loyal or trustful account owners can have the visibility to specific information on the store site. For example, a special promotion page is accessible with the account owners only. New visitors at this case are not allowed to create accounts.

More features

Notice message

Set the message to notify customers when they visit a required login page.

Extension compatibility

Required Login is properly compatible with Social Login, OneStepCheckout, Age Verification, Two Factor Authentication

Full Features List

For store admins


  • Select default pages to apply Required Login
  • Select CMS Page to apply Required Login
  • Include Custom Page with specific strings to require login
  • Exclude Custom Page with specific string to freely access
  • Select destination page after customers log in successfully


  • Enable/ Disable the extension
  • Enable/ Disable Create Account function
  • Input Required-Login Message

For customers

  • The customers use their accounts to log in to view specific pages
  • A new visitor will be required to sign up account which then is used to log in to view required-login pages
  • Creating account then log in easily via email address

Can't find your feature?

Are you looking for a feature in Required Login. Tell Elle your wants and needs.

Chat with Elle

Are you an agency?

Do you often visit us for purchasing extensions and technical support? Speak to April to learn about your exclusive benefits on Mageplaza

Chat with April


09 April 2021

Works exactly what I needed

this is a great B2B ext, my site is wholesale only, which means it will require customers to login in order to see my listings and pricing. This ext redirects all the traffic to the login page with warning message, perfect!

Ben -Verified Purchase
24 April 2020

great module!!!

I have installed this module (even more modules) for my store and it works great. It was so easy to install and simple to use. Thank you Mageplaza for this great module

wen -Verified Purchase
08 April 2019

Excellent module

I have installed this module for my store and it works great. It was so easy to install and simple to use. Thank you Mageplaza for this great module

Brittany H. Lamb -Verified Purchase
03 April 2019

Great module!!!

Highly recommended module for your shop. I can do everything from managing users to protecting store information. I couldn't ask for more. Thank you so much!

Mary D. Cline -Verified Purchase
03 April 2019

Fast support

I have a small problem with the installation process. So I have contacted the support team and then they helped me to install it in the blink of an eye. Thank you so much!

Maria H. Parsons -Verified Purchase

Leave a Review

How do you rate this product?

Your email address on Mageplaza's store

Plain text, no HTML tags.