Password-protected website

Is there a way to create a pages solution where you have a password protection similar to a .htpasswd in nginx?
Was this page helpful?