Private Routes

Learn SSR for private pages, performance, security, and SEO.

We'll cover the following

As the adjective “private” suggests, private pages are not meant to be reached by everybody. Instead, they should be accessible by logged-in users only and contain the essential information needed to manage their account settings (username, password, email, and so on).

That said, we won’t really care about SEO, but we’ll focus on security instead. The data contained in those pages is sensitive, and we want to protect it at all costs. This is one of those rare cases where we want to sacrifice some performance to improve our security.

Get hands-on with 1200+ tech skills courses.