Powered by Adobe Commerce 2.4.3-p2


Force Login



Back to top

Force Login extension has been developed by the product team at PHP Studios. This extension allows merchants to restrict customers from accessing specific pages on the store view level. The configuration flags are available for restricting customers from accessing the product, category, cart, checkout, and CMS pages.

In addition to that, the website admin can also set up a config to restrict a customer to sign up on the website. Once customers are logged in, they can be redirected to the page based upon the URL which has been set up on the admin configuration. 



  • Allows you to disable the frontend pages of your website without logging in
  • You can set customer URL for redirection after user login
  • Enable/Disable customer registration
  • Admin can disable multiple CMS pages for the guest users
  • Admin can set custom error message for not accessible pages
  • Admin can disable all other pages
  • Admin can give direct access to some pages


Key Features


Display Message After Customer Redirected to Force Login Page: With our Magento 2 Force Login extension, whenever visitors try to access pages set as unvisitable without logging in, they will be redirected to the login-in page. A message, saying “You need to login to access this page” will be shown accordingly to inform the customers about the force login functionality.

Disable Registration Form: A merchant can manage the customer registration form. With this functionality, a merchant can hide/unhide the “register” block in the login page and header. If the registration flag is set to Yes, the customer registration form will be disappeared from the frontend.  As a result, guests cannot create new accounts in the frontend. Instead, the admin will do this action from backend sites. No more customers will be able to register on the website.



Force Login Function for Specific Pages: A merchant can easily apply force login functionality to the following pages:

  • Product Page
  • Category Page
  • Cart Page
  • Checkout Page
  • Advanced Search Page
  • Search Results Page
  • Contact Page
  • Other Pages (Rest of the pages in the store)
  • CMS Pages (Home Page, 404 pages, Enable Cookies, Privacy Policy, About us and etc)
  • Other pages include the rest of the pages in the store.   

Other Pages: Many pages have given the configuration to enable/disable the force login functionality, the remaining pages who don’t have the configuration separately fall in the other pages configuration i.e. if there is a third party/custom page which doesn’t exist in the configuration separately then that page configuration is bind/associated with other page configuration. 

Direct Access: All the pages of the store have applied force login functionality but you want to give direct access to some pages. For that, you have to add comma separated URL’s (controllers: front name/controller/action) to the direct access configuration to give access to the guest users.

Redirect After Logging In: It is vital to smooth customer shopping experience at all times. After Magento 2 Force Log in process, please redirect them to a suitable page for further purchases. You can choose any of the followings:

  • Default
  • Home Page
  • Custom URL 

Custom URL: redirect to the desired URL after login successfully.



By default, options are disabled, to apply Force Login functionality on different pages of the website, you have to enable the option from the backend configuration i.e. you have to enable the force login functionality for Product Page. Please follow the below steps:

  1. In Menu Bar navigate to PHPStudios -> Force Login -> Configuration.
  2. In “Enable/Disable Force Login on Specific Pages” enable the option for “Product Page”.
  3. Save the Configuration.
  4. Go to System -> Cache Management
  5. Flush Magento Cache
  6. Refresh the frontend page of the website
  7. Force Login functionality will be working for the specific page (product page)

Technical Specifications

Back to top

Seller profile

PHP Studios

Seller contact



Current Version


Adobe Commerce platform compatibility

Open Source (CE): 2.3 (current), 2.4 (current)

Commerce on prem (EE): 2.3 (current), 2.4 (current)


Stable Build


03 November, 2021


Extensions, Marketing, Advertising

Quality Report

Back to top

Installation & Varnish Tests


Coding Standard


Plagiarism Check


Malware Check


Marketing Review


Manual Testing


All tests were conducted on the latest versions of Adobe Commerce that existed for the compatible release lines at the moment of the extension submission. Latest versions of all other software were used, as applicable.

Release Notes

Back to top


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    Compatible with all versions of 2.3 and 2.4.


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    Magento 2.3.* and 2.4.*


Back to top

The best place to start if you need help with a specific extension is to contact the developer. All Adobe Commerce developers have both a contact email and a support email listed.

Contact Vendor

Q & A

Back to top


Back to top