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 B2B Login & Onboarding application.

-
Click on the Setup B2B Login tab as shown below.

-
Now, click on the Configure Login button.

-
You will be redirected to the B2B Configuration page. Open the B2B Restriction Settings tab.
-
Activate the Restrict Access to Non-B2B Users option to ensure that only logged-in B2B users can access store content. Non-logged-in users will be blocked from viewing the store, except for whitelisted pages.
-
Click on Save.

- To complete the configuration, enable the B2B extension.

- Enable the B2B Restrict Access extension and click Save to apply the settings.

- You can whitelist a page so that any user can view or access it. Navigate back to the app dashboard and click the + Add Pages button under the Whitelisted Pages section.

- Select the pages you want to whitelist, then click Done to save your selection.
