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.

    Open the B2B Login & Onboarding Application

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

    Click the Setup B2B Login Tab

  • Now, click on the Configure Login button.

    Click 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.

Activate Restrict Access to Non-Logged-In Users

  • To complete the configuration, enable the B2B extension.

Click B2B Restrict Store Access extension

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

Save B2B Restrict Access extension

  • 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.

Add pages for whitelist

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

Select whitelist pages