Adding a Protected Page
- Open Auth Plugin > Protected Pages
- Click Add
- Enter the page path (e.g.,
/dashboard) - The pattern is auto-generated (e.g.,
/dashboard.*)
How It Works
The Shield Script (injected during setup) checks the current URL on every page load. If it matches a protected page pattern and the user is not signed in, they’re redirected to sign-in.Patterns use regex matching.
/dashboard.* protects /dashboard, /dashboard/settings, and any other path starting with /dashboard.Common Setup
| Path | Protected | Use Case |
|---|---|---|
/ | No | Public homepage |
/sign-in | No | Login page |
/sign-up | No | Registration page |
/dashboard | Yes | User dashboard |
/account | Yes | Profile/settings |