Make a .htaccess file in the directory you wish to protect, then inside, have the following:
order deny,allow
deny from all
allow from 127.0.0.1
Replace 127.0.0.1 with the IP address you wish to permit
If you want to allow more than one IP address, simply add a new line called "allow from" followed by the IP address.
Hope this helps
