Password protecting using .htaccess is a part-way house as you have one password to protect a file or files.
Through an error or malicious intent and that password can be compromised and you have...