To restrict access to a directory on a apache based website, you can add a .htpasswd file. This file will contain username/password combinations that let you access the restricted pages. You can use the following tool to create encrypted passwords.
http://www.htaccesstools.com/htpasswd-generator/