Sometimes, there is a need to restrict not logged in customers to some pages of the website. Also, for the privacy of the store, you do not want visitors to have access to some pages. It also helps in retaining customers for a longer period of time. For this reason, there arrives a need for force login for not logged-in customers in Magento 2.
Force Login Extension for Magento 2 permits the admin to limit access to the not logged in customers. The admin can display the custom message for restriction of the access. The category pages and other CMS pages can be selected from the backend for force login. Enabling the option only to the members of the store helps to keep the privacy of the store from the B2B business. Straightforward backend management to redirect customers to the login page with a custom URL and restrict the current page.