How to Set Up a Protected Route in Our CMS
Protecting routes is essential for handling sensitive content, and with our new feature, setting up a secured route is straightforward. Follow these steps to create a protected page:
Step 1: Create a New Page
Start by creating a new page as usual. Ensure that you add a slug
—this will be the unique identifier for your page. The slug is important for route generation, so choose something meaningful.
Step 2: Enable Protection for Your Route
After creating your page, locate the Protected field option and toggle it to true
. With this, your route becomes secured, allowing only authorized users to access it.
Step 3: Auto-Generate a Secured Link
Click the Auto Generate button to automatically create a secured link with the necessary parameters. This link ensures your route is protected from unauthorized access.
Step 4: Copy the Raw Link Value
Next, click on the dropdown menu beside the secured link field and select Copy Raw Value. This will copy the unprocessed link, which you can modify as needed.
Step 5: Update the Link for Your Site
Replace https://example.com/
in the copied link with the correct domain for your website. This ensures the link directs users to the right site with the secured route in place.
Step 6: Distribute the Secured Link
With the link updated, you’re ready to send it wherever it’s needed—whether embedded in a QR code or included in an email. Your protected route is now accessible to authorized users only.
By following these steps, you’ll be able to secure any route within your CMS, perfect for keeping confidential content safe.