If you are using an apache server, try a yahoo search for '.htaccess authentication'
This is a basic method for authentication. This is how you can protect directories of your site.
Are you using PHP, ASP or Perl? If so, there are other options. Let us know.