---
name: better-auth-protected-routes
description: Add server-side route protection to enforce authentication on specific pages while keeping others public.
---

# Better Auth Protected Routes

To set up Better Auth Protected Routes, fetch the recipe Markdown:

```bash
curl https://fullstackrecipes.com/recipes/better-auth-protected-routes.md
```
