Free Installation
Free 1-Year Support
Free Update
30-Day Money Back

Force Login for Magento 2

Sorry, you need log in to access this page!” - sounds a little annoying for visitors but you see it often when sticking around e-commerce sites. It turns out an effective way for merchants to control over page access restriction. Explore Magento 2 Force Login extension to know why:

  • Support “force login” function for specific pages and all the site
  • Enable/Disable the default Magento 2 customer registration link
  • Redirect users after logging in
  • Included in B2B Package
Community: 2.0.x - 2.1.x - 2.2.7 - 2.3
      |      Enterprise: 2.0.x - 2.1.x - 2.2.7 - 2.3

* Required Fields

Free Installation
Free 1-Year Support

The Idea: Require Users to Login to View Specific Pages

William King is the owner of a Magento 2 B2B website. He emailed us complaining that by default, all product content and price for the general public - even his rivals. This significantly hurts the competitive advantages. As a result, he wanted to:

1. Restrict access to registered users only

William desired to limit specific page access for several customers. "Non-logged-in customers would get redirected to the registration/sign-in page." This makes sense for good reasons.

+ Force Login Access to All Pages: Only pre-registered dealers could view product content and purchase at his B2B store. That way, William felt easy to manage orders, customers, and re-market them;
+ Force Login to access Catalog Page and Product Page: Sometimes, he only wants to restrict the visitability to the product page and catalog page. Pricing and product information are the top causes. 

2. Tightly control his customers

“The default registration is not informative enough for wholesale dealers. And, instead of approving all accounts like default, better if I can accept or decline the request to ensure the reliable B2B relationship at the very first place,” said Wiliam. We do have a solution fitting his demand, called Magento 2 B2B Registration.

The Solution: Magento 2 Force Login Extension

  • Support “force login” function for specific pages or the whole site

Besides Product page, Catalog page, Checkout page, etc., the admin can restrict access to any CMS Pages and even all pages based on various business purposes. Features of Magento 2 Force Login also work with pages customized by third-party extensions.

  • Enable/Disable default customer registration link

Like William, B2B stores even need to manage customer registration. Hence, this function is to hide “register” block in login page and header. As a result, guests cannot create new accounts in the frontend. Instead, the admin will do this action from backend sites; or

Bonus >>> The admin can also create a new sign-up form with more information for wholesalers and completely manage over the registration request by using Magento 2 B2B Registration extension. 

  • Display an alert message to notify customers of force login

Whenever visitors try to access pages set as unvisitable without logging in, they will be sent to the sign-in pages. A message, say “Please log in to view this page,”  is shown accordingly to inform them of the force login functionality.

Redirect non-loggin customers to login page

  • Redirect users after logging in

It is important to smooth customer shopping experience at all time. After Magento 2 Force Login process, please redirect them to suitable page for further purchases. You can choose among these following:

+ Default                     + Home Page

+ Previous URL          + Custom URL

In a nutshell, “require to login” function not only gives the admin better control of the site but it also helps shopper to manage orders. Accordingly, storing every deal in the logged-in accounts helps B2B vendors to reorder regular purchase at predictable intervals quickly. Not to mention, forcing customers to login is an effective way to leverage the customer database, which is helpful to grow your business whether it is B2B or B2C.

Ready to get Magento 2 Force Login extension at only $49.00?

P/S: Magento has added Google reCAPTCHA and 2FA functionality to all Magento Commerce and Open Source versions 2.1 and above to enhance Magento 2 security. Please check the user guide to get the detailed instruction for installation


  • I love your support team so much
    Something went wrong at the first time I installed this module. But support team always stand by me and solve every problem in the prompt time. It is really nice and I keep supporting BSS so far
    verified buyer
    Reviewed by Zachary Tait on 29 December 2018
  • No bugs are absolutely awesome
    Your tool is very good. No bugs detected so far. User-friendly and feature-rich module.
    verified buyer
    Reviewed by Patrick on 18 December 2018
  • Simple feature but it's enough for my requirements! Love your support
    What I like about BSS extensions is great support and regular updates. This one is just one of three modules I bought from BSS, but I really like it. Although the feature is very simple, it helps me to operate business and keep something private for only logged in customers
    verified buyer
    Reviewed by Henry Cone on 12 December 2018
  • Good extension but cheaper price could be better
    Actually, the module is not bad, it is very easy to configure and use. However, the price may be a little bit higher. If it is cheaper, I absolutely fall in love with it. Anyway I love your support team. You guys are so hard-working and care for customers.
    verified buyer
    Reviewed by Tim Schneider on 12 November 2018
  • Luckily I found out this extension
    I should say the module met all my expectations. This module works pretty well and it is very easy to install and configure. I recommend it.
    verified buyer
    Reviewed by Robert Blanco on 19 October 2018
  • Useful extension.
    What makes I like this Magento 2 module the most is the feature to force customer login to access certain pages by which I can keep some parts available for one customer group.
    verified buyer
    Reviewed by Saran J. Brown on 03 May 2018
  • Work as promised.
    I totally satisfy with Magento 2 Force Login extension. It works smoothly as your promise. Keep up your good work!
    verified buyer
    Reviewed by William E. Salyer on 27 April 2018
  • Wonderful Support!
    After installing Magento 2 Force Login on my sites, there was a small error with redirecting feature and I ask your support team for help. They responded quickly with detailed instruction. Now everything is working smoothly and flawlessly. Big Thanks!
    verified buyer
    Reviewed by Stephen N. Richmond on 09 April 2018
  • well extension for private store
    For wholesale business, I recommend installing Force Login. All my B2B customers need to create accounts and login for shopping as I want. Good work. Keep having nice modules.
    And it is easy to configure. Thanks again
    verified buyer
    Reviewed by Robert L. Ellis on 27 March 2018
  • Very customizable plug-in
    Really satisfied with this plug-in. I want t install a function that forces the user log-in to access catalog and product pages on my website. This module helps me so much, it is very flexible.
    verified buyer
    Reviewed by Steven J. Carollo on 05 December 2017
Write a Review
You're reviewing: Force Login for Magento 2
How do you rate this product? *

Release Note

  • v1.0.0: First Release
  • v1.0.1: Fix blank page issue when re-login
  • v1.0.2: Fix bug when create customer account in backend
  • v1.0.3: Fix issue with Contact us Page setting