Restrict Access to Non-Logged-In Users
Feature Description
This feature ensures that only authenticated B2B users can access your store’s content. When enabled, any non-logged-in visitors or non-B2B users are automatically blocked from viewing restricted pages or data. Admins can optionally whitelist specific pages (such as login, signup, or informational pages) to remain accessible to all users. This helps maintain security and control over who can view your B2B storefront.
Setup Instructions
-
Navigate to the Shopify Dashboard, and open the Customer Accounts Login application.

-
On the app dashboard, scroll down to the Storefront Login Options card and click Edit.

-
On the Login Options page, open the Store Access Control Settings tab.
-
Turn on Restrict access to Non-B2B users so only customers assigned to a company can view store content. Everyone else is blocked, except pages you whitelist.
-
Turn on Enable Auto Login Redirection if customers who open a restricted page should be sent to the login page.
-
Click Save.

-
To complete the configuration, enable the b2b restrict store access extension and click Save in the theme editor.
-
Under Whitelisted pages, click Add Pages, select the pages any visitor may open, then click Done to save the selection.