It is sometimes necessary to restrict access to a store for customer authenticated. This is needed for B2B websites for example. Here is a module that allows you to redirect anyone not connected to the login page.
Extension is available on GitHub: https://github.com/jreinke/magento-require-login
You have 2 ways to install it:
- Manual installation : download package here, unzip in Magento root folder, then clean cache.
- Installation with modgit:
modgit -e README.md clone require-login https://github.com/jreinke/magento-require-login.git
See a full example of how to use
Go to “System > Configuration > Bubble RequireLogin”:
Of course, some routes must still be accessibles even if authentication is required. This is the case for password forgotten, password reset, account creation, etc. That’s why a whitelist parameter is available as a regular expression. Be careful when modifying it!