Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 CMS page for logged-in customers: control access by customer group

Magento 2 Extension Hyvä Ready Magento 2.4.x

SKU: CMSPAGERESTRICTION1

  • Access per CMS page and CMS block: everyone, logged-in only or selected customer groups
  • Free redirect targets with return to the requested page after login
  • Restricted pages with noindex and excluded from sitemap and search
  • Exception list and store-view control for multilingual shops
Auf Lager
€149.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

Magento 2 Extension

Magento 2 CMS page for logged-in customers: control access by customer group

With this extension you set up a Magento 2 CMS page for logged-in customers: dealer price lists, partner information, download pages or internal guides are visible only when a customer has signed in or belongs to a specific customer group. You define the rule right in the CMS editor, with no programming and no second system.

Magento ships without any access restriction for CMS content. Anyone who wants a closed area usually falls back on hidden URLs or server-level password protection. Both are inconvenient, not tied to your customer accounts and untidy from a search engine point of view. The CMS Page Restriction module solves the task inside Magento and Hyvä: access rule, redirect, notice text and noindex from a single source, set up by Mironsoft.

6 features

Closed areas with a Magento 2 CMS page for logged-in customers, without a second CMS

Decide who may see a CMS page or block: you set up the Magento 2 CMS page for logged-in customers right in the page editor, with clear rules for every other visitor.

Access per page

In the CMS page editor choose: everyone, logged-in customers only or selected customer groups.

CMS blocks too

Single blocks, such as a price list teaser, can be limited to customer groups as well.

Redirect with return

Locked-out visitors land on the login page and return to the requested page after signing in.

noindex for restricted pages

Protected content stays out of search engines, the sitemap and the internal search.

Exception list

Imprint, privacy policy and other pages always stay reachable, whatever else is set.

Per store view

Rule, notice text and redirect target can differ for each language and store view.

Use cases

Use cases: when a Magento 2 CMS page for logged-in customers makes sense

Wherever a Magento 2 CMS page for logged-in customers is needed because content is not meant for every visitor but should still be maintained in the shop CMS.

Dealer area in a B2B shop

Wholesalers see tier conditions, catalog PDFs and dealer news while consumers do not see the page. The customer group "Wholesale" is enough as the key for a dealer area in Magento 2.

Partner and agency portal

Sales partners find logos, product data sheets and terms on protected CMS pages that you maintain like any other page.

Staff and internal area

Order policies, team discount codes or notes on handling returns live in the shop but only for logged-in accounts of an internal customer group.

Early information for regular customers

News and promotions appear first for a loyal-customer group. Anyone not signed in is guided to log in or to an explanation page. That is a Magento 2 CMS page for logged-in customers without extra tools.

01Access rule on the content

How a Magento 2 CMS page for logged-in customers controls access right in the editor

Every CMS page and CMS block editor gets an extra "Access" section. There you choose whether the content is visible to everyone, to logged-in customers only, or to specific customer groups such as "Wholesale" or "Partner". No separate permission manager, imports or extra menus are needed.

  • Three modes: Everyone, Logged in only, Selected customer groups
  • Multi-select of customer groups, including "Not logged in"
  • Same logic for CMS pages and CMS blocks
Content › Pages › Dealer area
Access
Selected customer groups only
Customer groups
Wholesale, Partner
Notice text
This area is visible to dealers only.
Stores › Configuration › Mironsoft
Redirect target
Customer account login
Message
Please sign in to view this area.
Return after login
Enabled
02Redirect and notice

Redirect and notice: what visitors see when a Magento 2 CMS page for logged-in customers is locked

When someone without permission opens a protected page, you decide what happens: redirect to the login page, to the home page, or to any CMS page, for example an explanation of dealer access.

An optional notice message can be shown as well. After login the module returns the customer to the page originally requested, provided the account belongs to an allowed group.

  • Redirect target global and overridable per item
  • Notice text per store view, multilingual
  • Return to the requested page after login
03Search engines and cache

Restricted also means: out of the search index and never mixed up in the cache

Protected pages should not show up in search results. The module adds noindex/nofollow to restricted pages, removes them from the XML sitemap and hides them from page search. The redirect stays temporary (302), so the page can be opened up later without SEO leftovers.

The check respects the full-page cache: pages with a rule are served separately per customer group, so nobody accidentally receives another visitor's version.

  • noindex/nofollow and sitemap exclusion applied automatically
  • 302 redirect instead of a permanent one
  • Cache separation by customer group
Result · /dealer-price-list
Visitor without permission
HTTP status302
Redirect/customer/account/login
robotsnoindex, nofollow
Comparison

Closed area: without and with CMS Page Restriction

The Magento 2 CMS page for logged-in customers compared directly with the usual workarounds.

AspectWithout moduleWith module
Access ruleHidden URL or server-level passwordChoice in the CMS editor: everyone, logged-in only or customer groups
Customer groupsNot taken into accountMulti-select including "Not logged in"
Visitor without permissionError page or browser password dialogRedirect to login or a CMS page with notice text
Search enginesPage may get indexed or stays hidden by luck onlynoindex, nofollow, no sitemap, no page search
MultilingualSecure each language separatelyRule and notice text per store view
Maintenance effortDeveloper or server access neededEditors work in the familiar editor
Setup

How the Magento 2 CMS page for logged-in customers is set up

The module is not downloaded: we set up the Magento 2 CMS page for logged-in customers in your shop. The process:

  1. 1

    Clarify the need

    We discuss which CMS pages and blocks are to be protected and which customer groups get access.

  2. 2

    Installation in the shop

    We install the module in your Magento 2 instance, first in a test environment if you wish.

  3. 3

    Define rules and texts

    Redirect target, notice text per store view and the exception list are configured together.

  4. 4

    Test with two accounts

    We check the pages as a guest, as an ordinary customer and as a member of the released group, including cache and search engine tags.

  5. 5

    Handover

    Your team receives a short guide on how to protect new pages and blocks.

Scope compared with other Mironsoft modules

CMS Page Restriction protects individual CMS pages and CMS blocks and so delivers the Magento 2 CMS page for logged-in customers. A shop-wide login requirement for catalog and checkout is a different task and is covered by the separate Force Login module. Approving new customer accounts is handled by the Customer Approval module, customer-group-dependent prices by Custom Price.

The modules can be combined: first you approve an account, then assign it to a customer group, and the dealer then sees their area. You need no separate password protection for that.

04How the purchase works

No download — personal setup instead

CMS Page Restriction is not listed here as a ready-made download for self-installation. The purchase is a service commission: after the purchase we get in touch, set up the Magento 2 CMS page for logged-in customers in your shop and agree with you which pages, blocks and customer groups are to be protected.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

On access rules, search engines, cache and how the purchase works.

How can I show a CMS page only to logged-in customers in Magento 2?
With the module you set the access of the CMS page to "Logged in only" in the page editor. Visitors who are not signed in are redirected to the login or an info page. That gives you a Magento 2 CMS page for logged-in customers without writing code.
Can I protect single CMS blocks and not just whole pages?
Yes. The access rule exists for CMS pages and CMS blocks, so the Magento 2 CMS page for logged-in customers can be applied to single parts of a page too. A restricted block is simply not rendered for unauthorized visitors, while the surrounding page stays visible as usual.
What does a visitor without permission see?
You decide: a redirect to the login page, the home page or a CMS page of your choice, optionally with a notice message. After login the visitor returns to the requested page.
Are protected pages indexed by Google?
No. Restricted pages get noindex/nofollow and are left out of the sitemap and page search. The redirect is temporary so a later release works cleanly.
Does it work with the full-page cache?
Yes. Pages with an access rule are cached separately per customer group, so one group never sees another group's version. Public pages without a rule stay cached as usual.
How can I release a CMS page for one customer group only in Magento 2?
In the "Access" section of the CMS page choose "Selected customer groups" and tick the groups you want, for example Wholesale or Partner. All other groups receive the redirect.
Is a Magento 2 CMS page for logged-in customers GDPR compliant?
The access check uses data that Magento stores for the customer account anyway. The module creates no additional profiles and uses no tracking. Wording your privacy policy remains your task; we do not give legal advice.
How long does setup take?
That depends on the number of pages and customer groups. The installation itself is quick; agreeing on rules and texts usually takes the larger part.
Can I download and install the module myself?
No. This offer is not a download product. After purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 CMS page for logged-in customers – Mironsoft CMS Page Restriction
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 CMS page for logged-in customers – Mironsoft CMS Page Restriction

Magento 2 CMS page for logged-in customers – Mironsoft CMS Page Restriction

€149.00