hi there
put this "referrer based" .htaccess file in the protected directory.
then the protected directory can only be accessed from another page in your domain.
if there are other domains that you want to allow to link to your protected directory, add them on the next line.. add as many allowed domains as you want.
if someone tries to access your private directory who is not allowed, they will be directed to the page you list in the last line.
name the file .htaccess
ftp it in ascii only.
permissions -rw-r--r--
works pretty good.. I have used these for years.
a good tutorial is at;
http://www.webmastersguide.com/htaccess-cgi/htaccess.htm
RewriteEngine On
RewriteCond %{HTTP_REFERER} ![url]http:///urlyourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} ![url]http:///urlanother_allowed_domain.com/ [NC]
RewriteRule /* http://www.yourdomain.com/warning_page.html [R,L]