Private pages

I wonder if there is a way to set information as private so just authorized users are able to access those pages. I have been looking for the way but I didn´t find how to do it.
Is it possible? and in this case How can I do it?

Restricting access is done by the server. Search for “basic authentication” in the docs for whatever web server you deploy your site to (ex: Apache, Nginx, Caddy, Netlify).


@jgreely’s way is the correct one.

I just wanted to mention that it is now possible to publish pages that do not show up in lists, sitemaps …

If your information is not super-private you could consider publishing it as something like

Add this to your page’s front matter:

  list: false