How to restrict content via passwords

There are a lot of sites you may want to create which require users to first input passwords until they can view certain content.

But how do you set this up?

Here is a basic step by step guide to do this.

Note this would work quite similarly with a yes/no condition that checks whether the content is viewable only for paying users or only for members of your team.

The basics stay the same ie you do not load all data on page load but only display it when a condition is true either using workflows together with privacy rules or privacy rules only and alerting the user via a popup.
(I always like to make it double secure and add both)

Happy to add to the guide any questions that may come up.