Does anyone know if it's possible to use the .htaccess file to limit access to a particular directory to people who have only a certain refererer?

I need to block access to all directories, unless they are accessed via a link on our website...

Thanks!