Hello rsl,
Thank you for your question. A commonly used option for this is to password protect a directory.
Then you would have to enter a username and password to access anything in that folder.
There are also specific plugins available for CMS' such as Wordpress, Joomla, and Drupal.
If you have any further questions, feel free to post them below.
Thank you,
-John-Paul