This is a simple but very effective way to block people from accessing folders in your website.

Simply create a .htaccess page and place the following code:

#Order deny,allow JOE
Allow from [user ip address]

We use this on most of our website installation to lock access to a website to a particular IP address.