Gate dynamic URLs with regex
For patterned URLs that change — forum boards, numbered levels, dated paths — match them all with one regular expression.
- Regex pattern
- Matches dynamic paths
- One rule, many URLs
Some sections have dynamic, patterned URLs — /forum/board-12/, /courses/level-3 — that a prefix can’t target precisely. A Regex URL rule matches them all with one regular expression, gating a whole family of paths while leaving public ones (announcements, rules) open. This recipe gates by regex.
- One regex covers a whole family of dynamic URLs.
- Public paths stay open; patterned ones are gated.
- Send non-members to login or pricing.
- Precise control over complex URL structures.
The exact configuration
Enter these values and you have the setup live. Every field maps to a real ArraySubs setting.
| Setting | Value |
|---|---|
| Pattern TypeMember Access → URL | Regex |
| URL PatternRule target | e.g. ^/forum/board-[0-9]+/ |
| ActionRule action | Login (or Redirect / Message / 403) |
| IF conditionRule conditions | Has Active Subscription |
When to use this setup
Set it up in 3 steps
A step-by-step guide drawn from the ArraySubs user manual. Open the linked page for the full walkthrough and screenshots.
Add a URL rule with Regex
In Member Access → URL, add a rule and set Pattern Type = Regex.
Access RulesWrite the pattern
Enter a regex such as ^/forum/board-[0-9]+/ to match all numbered boards.
Access RulesSet action and priority
Choose an action (e.g. Login) and a Priority so this rule evaluates before broader ones.
Content Restriction
This recipe is built from these ArraySubs user-manual guides:
Notes & edge cases
Modules behind this recipe
The ArraySubs modules this setup relies on.
Member Access
Control who can see, download, and purchase content using flexible rules tied to subscriptions and roles.
Subscription Products
Create and manage simple or variable subscription products with trials, signup fees, plan logic, and lifecycle behavior.
Related setups to explore
Other configurations you can build with the same modules.
Lock a URL path (with exclusions)
Gate everything under a path like /members/ with a URL rule — and exempt a few public pages.
Combine conditions (AND/OR)
Build nuanced access from multiple conditions — e.g. ‘Enterprise plan OR lifetime spend ≥ $5,000’.
Per-tier session limits
Give each plan its own concurrent-device limit — Basic 1 screen, Standard 3, Premium 5 — streaming-style.
Questions, answered
Unlock the complete Pro stack
Start on the free-forever core today, then choose a paid Pro plan when you need the advanced Pro feature set.
No credit card required · Annual and lifetime options available
