Free Tier - password protect single html file works great, how to do it for whole site?

Hi,

I am using the following Gatsby template Gatsby Yellowcake - Free theme for Gatsby and Deployed it to netlify via a private Gitlab repository.

I am using the following tutorial Password Protecting a Website with the Free Tier of Netlify (and Publishing with a Single NPM Script) | by John Mars | Medium to password protect a single file public/index.html

and it works great.

What I did was I replace whatever was in my package.json "scripts": { by what the tutorial mentions.

Then I changed my netlify.toml command to command = "npm run publish"

and under Netlify App I also changed the build command to npm publish

However, how can I password protect each individual page / the whole website please?

Kind regards,

888

@888ba8 As stated in the article you referenced, the Netlify Pro plan at $19 per month gives you this feature.