How to create an Access Control rule
1. Navigate to Access Rules

- Open the SP Hide Price & B2B Lock app in your Shopify admin.
- Go to Access Rules.
- Here, you’ll see a list of existing rules with their status (Active/Inactive), applied items, and actions (edit, copy, delete).
- For Entire store rules, the Applied To column shows Entire store and the number of pages kept open.
- The Checkout column shows whether each rule is also checked at checkout: Blocked, Storefront only or Off.
- Click the + Add Rule button in the top-right corner to create a new rule, or start from a template (see 1.1).
1.1. Start from a template

Click Start from template next to + Add Rule and pick a ready-made rule. If your store uses Shopify B2B, you’ll also see the B2B store template.
- Wholesale-only store: locks the entire store. Only customers with the wholesale tag can get in, and checkout is blocked for everyone else.
- Members-only store: locks the entire store. Only signed-in customers can get in, and checkout is blocked for everyone else.
- Pre-launch preview: locks the entire store with a password (the app creates a random one) and shows a Full page lock screen.
- B2B store: locks the entire store and lets in only B2B customers (customers who buy for a company). Checkout is blocked for everyone else. Visitors see a sign-in screen: B2B customers only. Sign in with your company account to see our catalog. The home page and policy pages stay open, so visitors can still find the sign-in link. This template only shows when Shopify B2B is on for your store.
A rule created from a template is always Inactive. The app opens it in edit mode so you can review it, then switch it on.
2. General setup

- Rule name: Enter a descriptive name (e.g., Wholesale Only, VIP Products).
- Description: Optionally add notes for internal reference.
- Access Mode:
- Block selected groups (Blacklist): the default. Visitors in the groups you choose are blocked. Everyone else gets in.
- Allow selected groups only (Whitelist): only visitors in the groups you choose get in. Everyone else is blocked, on the storefront and at checkout.
- Status: Toggle ON to activate this rule after setup.
Note: If you switch an Active rule from Block to Allow, the app asks you to confirm: Switch this live rule to Allow-only? Everyone outside these groups will be blocked.
3. Define what to protect

Under What to Protect, choose one option:
- Entire store: one rule locks every page of your store. You only choose which pages stay open.
- Specific content: choose products, collections, pages or custom URLs.
3.1. Entire store
Some pages are always open so customers can still sign in. Others are open by default, and you can lock them.
| Group | Pages | Can you change it? |
|---|---|---|
| Always open | Login, register and account pages · Password reset and account activation · App pages (/apps/…) · Shopify password page, 404, gift card | No |
| Keep open | Policy pages (Recommended, ticked by default) · Home page (ticked by default) · Blogs and articles · Search results | Yes, tick or untick |
| Also keep open | Store pages or URLs you add in Search pages to keep open (URLs start with /, up to 50) | Yes |
Important: If you untick Policy pages, the app warns you: Payment providers and Shopify reviewers may need to see your policies. You can still save.
Note:
- A product you keep open can be viewed, but it still can’t be bought at checkout when Checkout protection is on.
- Translated versions of a page stay open too. For example, if /pages/about is kept open, /vi/pages/about is open as well.
- If your redirect destination (Custom URL or Homepage) is inside the locked area, the app adds it to the pages kept open and shows Added /pages/x to pages kept open.
3.2. Specific content

- All Products: Check this box to apply restrictions to all products in your store. You can also uncheck the box and choose specific products/collections to be protected.
- Pages: Search and select specific pages to protect.
- Custom URLs: Enter relative URLs (starting with
/) or full URLs, one per line.
Note:
- Pages and custom URLs are protected on the storefront only. Checkout protection applies to products and collections.
- A rule that protects a collection locks the collection page itself, not only the products in it. This includes the next pages of the collection and the collection filtered by tag. If you want shoppers to browse the collection but not open its products, protect the products instead of the collection.
4. Set up your protection rules
Select the protection type you want to apply. Each option controls access in a different way. Once selected, the app will show the required configuration settings.
- Block mode: choose the type in the Protection From section.
- Allow mode: the section is named Allow Access For and has fewer types. See 4.7. Allow selected groups only (Whitelist).
You can choose from 6 protection types:
- User-based protection
- Block specific countries
- Block IP address
- Require password to access (Block mode only)
- Age verification (Block mode only)
- Secret link

4.1. User-based protection

In the Configuration section, choose who will be restricted:
- Block guest visitors (not logged in) – Recommended for B2B/wholesale.
- Block specific segments – Restrict based on customer tags or segments.
- Block specific email addresses – Restrict individual emails.
You can turn on any option individually or combine multiple options, depending on how you want to limit access.
4.1.1. Shopify B2B: companies and locations

If you sell with Shopify B2B, you can open or lock content by company instead of by customer tag. You don’t need to tag anyone: the app reads the company and location the customer is buying for.
Use it for:
- A wholesale catalog that only your B2B companies can see.
- A price list page for one company.
- Products that only some branches (company locations) can order.
It works in both Block and Allow mode, on any content a rule can protect: pages, products, collections or the entire store.
Before you start: Shopify B2B must be on for your store, with companies and company locations created in Shopify. If B2B isn’t on, the rule form shows the banner B2B isn’t turned on for this store, and the B2B options can’t be ticked.
Choose who the rule applies to
| Option | Who it matches |
|---|---|
| Allow / Block B2B customers | Every customer buying for a company, whichever company it is. |
| Allow / Block specific companies | Customers buying for the companies you pick. If a customer belongs to several companies, the app checks the one they're buying for right now. |
| Allow / Block specific company locations | Customers buying for the locations you pick, for example only your Berlin Store branch. |
Set it up
- Go to Access Rules and create a rule, or open one.
- Choose what to protect and the Access Mode (Block or Allow).
- In the user-based section, under Shopify B2B, tick one or more options.
- Pick the companies or locations:
- Companies: search or scroll the list.
- Locations: they’re grouped by company. Type a location name to search across all companies.
- Click Save, then turn the rule on.
Limits: up to 250 companies and 500 company locations per rule.
Note: If you tick an option but don’t pick anything, the app won’t save. It shows Choose at least one company or Choose at least one company location and scrolls to the field.
👉 Check the rule with Quick Preview before you turn it on. See 5.3.
👉 With Checkout protection on, buyers the rule locks out are also stopped at checkout.
4.2. Block specific countries
In the Select countries field, choose one or multiple countries you want to block. Visitors from these selected locations will not be able to access the protected content.

4.3. Block IP address
- IP entry: Enter the IP addresses you want to restrict (one IP per line).
- Note: Write a short note to remind yourself who this IP group is (optional).
Note: IP address rules work on the storefront only and are not checked at checkout.

4.4. Require password to access
Require visitors to enter a password before viewing protected content.
- Password creation: Create the password visitors must enter (4–50 characters).
- Password strength: See if the password is strong enough.
- When the password changes: Choose what happens to visitors who previously unlocked the content:
- Sign everyone out: End existing sessions. Visitors who used the old password must enter the new one on their next page load.
- Keep sessions: Keep existing visitors signed in. Only new visitors need the new password. This is the default option.

This setting applies only when you change the password and save the access rule. It affects only the sessions associated with that rule.
- Password hint: Give visitors a small clue.
- Attempt limit: Choose how many times a visitor can try (1–10 attempts).

Note: If a page is covered by several rules, entering the right password only passes this rule. Visitors must still pass every other rule on the page.
4.5. Age verification
Require visitors to confirm they meet the minimum age before viewing protected content.
- Verification image: Upload an optional image (JPG, PNG, or GIF).
- Verification method: Choose one of two methods:
- Confirm with buttons: Visitors confirm their age using Yes/No buttons. This is the default.
- Enter date of birth: The app calculates visitors’ ages from their birth dates. You can also:
- Remember verified visitors for 30 days.
- Ask for the birth month and year only.
- Redirect underage visitors immediately.
- Minimum age: Set the required age (1–100).
- Message: Customize the title and description.
- Terms checkbox: Require visitors to accept your terms before verification.



Note: If a page is covered by several rules, confirming age only passes this rule. Visitors must still pass every other rule on the page.
4.6. Secret link
A Secret Link rule locks pages for everyone except visitors who open a private link (or scan its QR code) that you share. They need no account and no password.
Use it for a preview of a new collection, a catalog for one distributor, or a link your sales team sends to a buyer. For each link, you decide when it expires, how many browsers can use it, and whether its visitors can check out.
4.6.1. Set up a Secret Link rule

- In What to Protect, choose the pages, products or collections to lock.
- Under the protection types, select Secret Link (Only visitors with a private link can open protected content).
- In Configuration, keep Show an access bar to link visitors on if you want a thin bar at the top of the page that tells visitors they’re using a private link and when it ends. It is on by default.
- Click Save. Links can only be created on a saved rule.
- Turn the rule on when you’re ready to share links.
4.6.2. Create a link

In the Secret links card of the saved rule, click Create link and fill in:
| Field | Options | Default | Can change later? |
|---|---|---|---|
| Label | Required, up to 80 characters. Shown in orders placed with this link. | – | Yes |
| Landing page | Home page, a page of the rule, or Other path… (starts with /, e.g. /products/summer-dress) | First option | No |
| Expires | Never, or On date: the link stops working at the end of that day (store time) | Never | Yes |
| Uses | Unlimited, or Limit to 1–100,000. Counted once per browser, not on every page view. | Unlimited | Yes |
| Keep visitor unlocked for | Until the browser closes, 7 days or 30 days | 7 days | No |
| Let visitors with this link check out | On: visitors can buy the rule's products. Off: view only, for preview links. | On | Yes |
Click Create link. The link appears in the table and you can copy it right away.
4.6.3. Manage links

The Secret links table lists every link of the rule:
| Column | What it shows |
|---|---|
| Label | The link's name, and when it was last used (Not used yet if never) |
| Link | A Copy button |
| Checkout | Allowed or View only |
| Expires | The end date, or Never |
| Uses | Browsers that opened the link, out of the limit |
| Status | Active, Limit reached, Expired or Revoked |
From a row’s actions menu, you can Edit, Copy link, Download QR or Revoke.
- Revoke all stops every link of the rule at once.
- Visitors using a revoked link are locked out on their next page load and can’t check out.
Important: Revoking can’t be undone. To share again, create a new link.
Limits: each rule holds up to 200 links, and up to 50 of them can allow checkout.
4.6.4. Edit Secret link messages

In Redirect & message settings, click Edit messages under Secret link messages to change the texts visitors see. Use the language tabs to edit them per language. Leave a field empty to use the default text.
| Field | Default text |
|---|---|
| Expired link | This link has expired |
| Link that reached its limit | This link has reached its limit |
| Revoked link | This link is no longer active |
| Unknown link | This link isn't valid |
| Help text | Ask the person who shared it for a new link, or sign in with your account. |
| Sign in button | Sign in |
| Access bar | You're viewing with a private link. |
| Access bar end date | Access until {date}. {date} is replaced with the link's end date. |
4.6.5. What visitors see
- With an active link: the landing page opens. With the access bar on, they see You’re viewing with a private link. Access until … at the top. They can browse every page of the rule without opening the link again, for the time set in Keep visitor unlocked for.
- With an expired, used-up, revoked or unknown link: the lock screen shows the matching message, the help text and a Sign in button. If the rule has Request access on, a Request access button shows too.
- Without a link: the normal lock screen, as for any visitor without access.
- At checkout: visitors with a link set to Allowed can buy the rule’s products. Visitors with a View only link can browse but not check out.
4.6.6. Good practice
Important: A link works like a key. Anyone who has it can open the rule’s pages, and a link that allows checkout works on any device until it expires or you revoke it. Links are a way to share content, not to protect sensitive information. To keep control:
- Set Expires and a Uses limit on links you send outside your team.
- Use one link per person or group, with a clear Label, so you can revoke just that one.
- Revoke links you no longer need.
Note: If many wrong links are tried on your store in a short time (more than 20 in 10 minutes), new links are checked again after a short pause. Visitors already using a valid link are not affected.
👉 Troubleshooting:
- A visitor says the link doesn’t open: check the link’s Status. Expired: edit Expires. Limit reached: raise Uses or create a new link. Revoked: create a new link. Also check that the rule is turned on.
- The Create link button is missing: save the rule first.
- “This rule has reached the limit of 200 links”: revoke links you no longer use, or create another rule.
- You want to change a link’s landing page or how long visitors stay unlocked: you can’t edit these. Create a new link with the new settings.
- You want to know which orders came from a link: the link’s Label is shown in orders placed with it.
- Does the link show in my theme code? No.
4.7. Allow selected groups only (Whitelist)
When Access Mode is Allow selected groups only (Whitelist), the Allow Access For card lets you choose who can get in. Choose one type per rule:
- User-based:
- Any logged-in customer: every customer who is signed in can get in. Available in Allow mode only.
- Allow specific segments
- Allow specific customer tags
- Allow specific email addresses
- Shopify B2B: Allow B2B customers, Allow specific companies or Allow specific company locations. See 4.1.1.
- Allow specific countries: select the countries that can get in.
- Allow IP addresses: enter exact IP addresses, one per line. IP ranges (CIDR, e.g. 192.168.1.0/24) are not supported.
Password and Age verification are available in Block mode only. If one of them is selected when you switch to Allow, the form switches to User-based and shows a banner that explains why.
A visitor who matches any group in the rule gets in.
Example: if you tick Any logged-in customer and add the tag wholesale, every signed-in customer gets in, and the tag has no extra effect. To allow only wholesale customers, select the tag wholesale only.
Note: Allow mode has no Block guest visitors or Customers without tags options. Guests are always blocked by an Allow rule. 👉 Want blocked visitors to ask for an account? Turn on Request access for this rule.
5. Redirect & message settings

- Redirect destination: Choose where blocked visitors are sent:
- Login page
- 404 Not Found
- Registration page
- Homepage
- Custom URL (enter a full link or relative path)
- Auto redirect timer: Set how many seconds before visitors are redirected (e.g., 5 seconds). Hidden when Lock screen is Full page (see 5.2).
- Message customization:
- Title: Enter a headline (e.g., Access Restricted).
- Description: Explain why content is blocked (e.g., You need to log in to view this page).
- Button text & style: Customize the call-to-action (e.g., Login Now).
5.1. Signed-in visitors without access
This setting appears when the rule is in Allow mode and the redirect destination is Login page or Registration page. It controls what a customer sees when they are signed in but not in an allowed group.
- Title: up to 120 characters. Default: Your account doesn’t have access.
- Message: up to 500 characters. Default: This page is for approved customers. Sign in with another account or contact us.
- {email}: replaced with the email of the signed-in customer.
- You can write a different title and message for each published language.
Example: you type You’re signed in as {email}. Contact us for a wholesale account. and the customer sees You’re signed in as [email protected]. Contact us for a wholesale account.
On the storefront, the customer sees a screen with 2 buttons:
- Sign in with another account: signs them out so they can sign in with a different account.
- Continue shopping: takes them to the homepage.
There is no countdown and no automatic redirect on this screen. With a Full page lock screen, it appears inside the full-page layout.
👉 When the screen does not appear:
- Guests: they see the usual popup or redirect, and return to the same page after signing in.
- Redirect is Homepage, 404 or a custom URL: signed-in customers are sent there instead.
- Allow rules by country or IP: visitors always get the popup or redirect.
5.2. Lock screen
Choose how blocked visitors see the rule:
- Full page: a full-screen lock page with your logo, message and button. The store header and footer are hidden. There is no countdown and no automatic redirect: visitors click the button to continue. This is the default for new Entire store rules.
- Popup: the popup with redirect. This is the default for Specific content rules.
Hide locked pages from search engines: adds a noindex tag to locked pages for visitors and bots that can’t open them. It is on by default for new Entire store rules. It doesn’t apply to rules by country or IP.
5.3. Customize the lock screen
Click Customize lock screen to open the theme editor at App embeds → SP Hide Price & B2B Lock. In the Lock screen group, you can set:
- Logo and Logo width: 60–300 px, default 140.
- Background, Text, Button and Button text colors.
- Button corners: Square, Slightly rounded or Pill.
- Show policy links: on by default.
Tick Preview lock screen in editor to see a sample lock screen while you edit colors. Only you see it in the editor. Customers never do.
Note: Logo and colors apply to the Full page lock screen. The message and button text are set per rule in the app.
👉 Quick Preview: a live preview appears on the right.
- For Allow rules, use Preview as to switch between Customer in allowed group ✅ and Other logged-in customer 🚫. A short summary tells you who can get in.
- For Entire store rules, Protected content shows Entire store, N pages kept open, and a Lock screen: line shows Full page or Popup. When Checkout protection is on, the preview also shows a Checkout: line that tells you whether this rule will be blocked at checkout and names any pages that stay storefront only.
- For Secret Link rules, Preview as lets you see the page as a Visitor without a link (the default), a visitor with a valid link or a visitor with an expired link, and the preview shows a summary such as Secret links: 3 active, 1 revoked.
- For Shopify B2B rules, Preview as lets you see the page as a B2B customer, a B2B customer of a specific company and location, or a D2C customer (a regular customer who doesn’t buy for a company).

5.4. Wrong location screen (Shopify B2B)

In Shopify B2B, a customer can buy for different locations of their company. When a rule only allows some locations, a customer buying for another location sees a Not available for {location} screen instead of the normal lock screen. From there, they can switch to a location that has access, without signing out.
When this screen shows:
- The rule uses specific company locations. Rules by company don’t show this screen.
- The customer is buying for a location the rule doesn’t allow.
- At least one of their other locations is allowed.
Guests, and customers with no allowed location, see the rule’s normal lock screen.
What the customer sees:
- Up to 3 Switch to {location} buttons. If they have more allowed locations, Choose location shows the rest.
- Clicking a switch button changes the location they’re buying for and opens the page.
- Continue shopping takes them to the home page.
Edit the texts: In Redirect & message settings, open Wrong location screen. You can write the texts for each language. Use {location} for the location name. Leave a field empty to use the default.
| Field | Default | Max |
|---|---|---|
| Title | Not available for {location} | 120 characters |
| Message | This page isn't available for the location you're buying for. Switch location to view it. | 500 characters |
| Switch location button | Switch to {location} | 60 characters |
| Choose location button | Choose location | 60 characters |

5.5. Request access
Instead of just turning visitors away, you can let them ask to join. Add a Request access button to the lock screen: visitors send you a request, you approve it in the app, and the app adds your tags to the customer and emails them.
The button is available on rules that allow customers with specific tags or any logged-in customer, and on Secret Link rules. Rules that block visitors don’t have it.
To turn it on, open the Request access section of the rule and tick Show a “Request access” button on the lock screen.
See How to set up Request access for the full setup and how to review requests.
6. Save & manage rules
- Click Save to create the rule.
- Go back to Manage Access Rules to view all rules.
- Here you can Edit, Duplicate, or Delete any rule.
- The Status toggle allows quick activation/deactivation.
- In the rule list, Allow rules show an Allow only badge in the Protection Type column. Use the Mode filter (All, Allow only, Block) to find them.

7. Tips for Allow mode
- Several rules on one page: visitors must pass every rule. If 2 Allow rules cover the same page (for example tag A and tag B), a customer with only tag A is still blocked. When you save, the app warns you: Visitors must pass both Allow-only rules. You can still save the rule.
- Tags, segments and emails only work for signed-in customers. Guests are always blocked.
- Countries: if the app can’t detect the visitor’s country, the visitor is blocked. At checkout, the country comes from the shipping address.
- At checkout, a buyer who only types an email without signing in counts as a guest and is blocked.
- IP rules block on the storefront only, not at checkout.
- Existing Block rules work exactly as before.
👉 Troubleshooting:
- Visitors outside the group can still get in: check that the rule is Active and whether Any logged-in customer is ticked. Then test as a guest in a private browser window.
- Allowed customers are blocked: check for other Allow or Block rules on the same page, check the spelling of the customer’s tag, and make sure the customer is signed in to the right account. Use Quick Preview to check who the rule applies to.
8. Tips for Entire store rules
Important: An Active Entire store rule locks your whole store right away. Create it as Inactive, check it in Quick Preview, then switch it on.
- Two Entire store rules: visitors must pass both. When you save, the app warns you: Visitors must pass all Entire store rules. You can still save.
- Checkout: when Checkout protection is on, visitors who don’t pass the rule are blocked at checkout, the same as a rule that protects all products, even through a direct cart link.
👉 Troubleshooting:
- The store is locked but the homepage is still open: Home page is ticked under Keep open by default. Untick it to lock the homepage.
- Policy pages are locked: tick Policy pages under Keep open.
- No logo or colors on the lock screen: set Lock screen to Full page, then set the logo and colors in the theme editor (App embeds → SP Hide Price & B2B Lock).
- Color changes don’t show in the theme editor: tick Preview lock screen in editor.
9. Tips for Shopify B2B rules
9.1. When you delete a company or location in Shopify
The app removes it from your rules within seconds. What happens next depends on the rule:
| Rule | It still has other companies or locations | Nothing is left |
|---|---|---|
| Block | Keeps running with the rest | Turned off, so it doesn't block anyone by mistake. Banner: This rule was turned off |
| Allow | Keeps running with the rest | Stays on and keeps the content locked. Banner: Companies or locations were deleted |
To fix it, open the rule, choose new companies or locations, and save. The banner goes away.
Note: A rule with nothing left can’t be turned on. If you turn on several rules at once, the app skips it and tells you, for example: 1 rule wasn’t turned on because it has no conditions left.
9.2. Troubleshooting
- The B2B options can’t be ticked, or the B2B store template is missing: check that Shopify B2B is on and that you have at least one company.
- A B2B customer is still locked out: check that the location they’re buying for is in the rule, and that the rule is saved and turned on.
- No Switch location buttons: the rule must use company locations (rules by company don’t show this screen), and the customer must have another location that the rule allows.
- A rule turned itself off: a company or location it used was deleted in Shopify. Choose new ones and turn the rule back on.