> For the complete documentation index, see [llms.txt](https://simpletut.gitbook.io/universal-react-redux-registration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simpletut.gitbook.io/universal-react-redux-registration/restrict-access-authenticated-users-only.md).

# Restrict Access (Authenticated Users Only)

Please follow the instructions below to restrict access to routes

**Open:** 'Frontend/src/client/routes/index.js' and find a route you wish to restrict access too.

```
{
    path: '/example',
    ...Auth,
    routes: [
        {
            ...ExampleComponent,
            restricted: true <<-- Add this
        }
    ]
}
```

Simply add **'restricted: true'** to the routes array object.
