Publishing a password protected rmarkdown/html file

Some hosting service like Netlify will offer some authentication layer. See https://docs.netlify.com/visitor-access/identity/#enable-identity-in-the-ui
Publishing HTML file (and companion files) to netlify is pretty easy, and you'll find some tutorial on the web.

Otherwise, I think you would require to create your own hosting service on AWS, DIGITALOCEAN, GCP or other service. A small apache webserver would be fine (example on GCP. You'll need to add an authentication layer and I think you can get this to work.

Some services like https://auth0.com/ are also offering free plan for this and it seems they have information on securing a single web page app (https://auth0.com/docs/quickstart/spa)

Hope these hints helps.

1 Like