If you have cpanel access with your hosting package, it should have a password protect folders option.

Then you publish all your protected content to a protected subfolder.

This method means...