Force Login

Force Login



Magento Platform
Open Source (CE)
2.0, 2.1, 2.2

Tech Specifications

Current Version:
Stable Build
30 January, 2018
Extensions, Content & Customizations, Personalization & Experience Management
License Type:
Apache License 2.0


The Force Login module redirects a storefront visitor to the Frontend login page, if the visitor is not logged in.


Back to top

The Force Login module for Magento® 2 allows you to restrict which pages a visitor is able to see without being logged in. Visitors get redirected to the login page when trying to access a page that is not marked as being visitable. The list of visitable pages can be managed by the merchant via the Magento® 2 backend by defining url rules as well as the store. Any incoming request that does not match an entry of the list will automatically redirect the user to the login page.

The module is especially useful for merchants serving only a specific group of users or partners when there is a need to ensure that only those users are able to browse the website or the product catalog.


  • Force your guest visitors to log in first (or register), before allowing them to visit your pages and catalog
  • Administration: Manage the whitelist rules by the GUI in the administration area
  • ACL: Restrict the administration of whitelist rules to certain backend user groups
  • Whitelisting: Define url rules (static + regular expressions) as pattern to define which pages guest visitors can visit without logging in first
  • Multistore-Support: Define if whitelist rules either apply globally or for specific stores



Release Notes

Back to top


  • Compatible with Open Source (CE) : 2.1 2.2
  • Stability: Stable Build
  • Description:

    - Fixed compatibility with Magento 2.1


  • Compatible with Open Source (CE) : 2.1 2.2
  • Stability: Stable Build
  • Description:

    The module now supports error pages (e.g. page url does not exist), now showing the error page instead of redirecting to the login page
    Previously, observers were used to lookup if a visitor needed to be forced to login. Now, the module uses the core routing chain with a custom routing component. This is a break with backwards compatibility, if you had plugins related to the observers.
    Some fixes to increase the support of Magento 2.2


  • Compatible with Open Source (CE) : 2.2
  • Stability: Stable Build
  • Description:

    Made module compatible with Magento 2.2


  • Compatible with Open Source (CE) : 2.0 2.1
  • Stability: Stable Build
  • Description:

    - Fixed invalid position of tag resource in system.xml
    - Move backend configuration to customer > customer configuration section
    - Provide backwards compatibility by setting strategy for existing rules to regex matcher instead of static matcher
    - Static matcher now canonicalizes urls and rules to omit differences of trailing slashes
    - Provide the needed changes to make sure the module will work with Magento 2.1


  • Compatible with Open Source (CE) : 2.1
  • Stability: Stable Build
  • Description:

    The highlights of this release are: More configuration possibilities, extension of default rulesets, reset of default rulesets is now possible. improvment of session and cache handling as well as some minor bugfixes.


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

Q & A

Back to top


Back to top