Magento 2 B2B Forced Login – Secure store content for logged-in customers only

€28.33 €23.03
COMPOSER Installation
M2-B2B-FORCED-LOGIN
PayPal PayPal
Przelew Przelew

Magento Modules: Clear Guidelines

You purchase the module once, with no domain restrictions

Tooltip

Free installation and updates via Composer

Tooltip

Affiliate Program

Tooltip

Technical support for Magento

Tooltip

Clear guidelines for licensing Magento modules

Tooltip

Magento Module Code Security

Tooltip

Magento 2 B2B Forced Login is a module designed for stores operating in a B2B model that require full control over access to website content. With this functionality, you can limit store visibility to logged-in customers only – eliminating random traffic and protecting sensitive commercial information.

Why choose Forced Login?

  • Full access control – redirect every user who is not logged in directly to the login page.
  • Configurable for every store – separate settings for each store view in Magento.
  • Two operating modes – block all pages except login or login and registration.
  • Ideal solution for wholesale sales – your prices and products will be visible only to verified customers.

Module features

  • Enable or disable the module separately for each store.
  • Select the access restriction level, either full lockout or access with registration available.
  • Simple and clear configuration in the Magento 2 admin panel.
  • Compatible with Magento 2.4.x.

Use cases

The module is an excellent fit for B2B environments, wholesalers, and stores dedicated to business partners or distributors where price lists, offers, and products must be hidden from unauthorized users.

Technical support

All our modules include technical support. If any issues occur, we provide implementation assistance and module development tailored to the individual needs of the customer.

Choose security and professionalism in B2B sales with Magento 2 B2B Forced Login by KOWAL.

Version: 1.0.2

15.02.2026

Added

  • Added a new configuration field URL Exceptions in the panel:
    • Stores > Configuration > Kowal > B2B Forced Login > Settings
  • The field uses a line-by-line format: each line is a URL fragment to be skipped by the forced login mechanism.

Changed

  • Extended the ForceCustomerLoginObserver logic:
    • the module reads the list of exceptions from the configuration,
    • compares the current request URI with the entered fragments, case-insensitive,
    • if the URL matches an exception, it does not redirect to login.

Why

Enables proper handling of webhooks and integration endpoints, such as Stripe in B2B stores, that must be accessible without a customer session.

Example use cases

    • stripe/webhook
    • rest/V1/stripe
    • /payment/stripe/webhook

Questions and Answers

Question
Does the module allow blocking access to the store for users who are not logged in?
Answer
Yes — after enabling the module, every visitor will be required to log in or register before gaining access to the store content.
Question
Can exceptions be set—pages that will be available without logging in (e.g., “Contact,” “Terms and Conditions”)?
Answer
Yes — the module offers configuration of exceptions that can be available without logging in.
Question
Does the module require modifications to Magento core files or the template?
Answer
No — the module description indicates that it works as an extension compatible with the Magento 2 architecture, without the need to overwrite system files.
Question
Which stores is this module most useful for?
Answer
Most suitable for B2B stores, test stores, or closed offers where only a verified customer should have access.
Question
After installation and activation, are users who are not logged in automatically redirected to the login page?
Answer
Yes — the module requires users to log in before accessing the store content and can redirect users who are not logged in to the login page.
Question
Is it possible for it to work only partially—for example, allowing access to only some pages without logging in?
Answer
Yes—although the main function is to fully require login, the module allows you to configure exceptions and selectively block access to specific pages or views.
Question
Is the module compatible with multiple store views (multi-store) and Magento 2 versions?
Answer
Yes — the manufacturer's description states compatibility with Magento 2.3–2.4.x and readiness for B2B/multi-store environments.
Question
Can requiring login negatively affect SEO or site indexing?
Answer
Yes — if the entire store is closed and available only to logged-in users, search engines may not have access to index it, which should be taken into account in the SEO strategy. (General knowledge about such solutions).
Question
Is the module installation simple?
Answer
Yes — according to the documentation, installation comes down to adding it via Composer, enabling the module, and configuring it in the Magento admin panel.
Question
After purchasing the module, do I receive technical support and updates from the manufacturer?
Answer
Yes — the manufacturer states that support and updates are provided for B2B modules.
Write Your Own Review
You're reviewing:Magento 2 B2B Forced Login – Secure store content for logged-in customers only
Your Rating
Aktualizacja preferencji plików cookie