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


I am using the following Gatsby template and Deployed it to netlify via a private Gitlab repository.

I am using the following tutorial 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 I also changed the build command to npm publish

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

Kind regards,


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