This is the .htaccess I use .. it prevent access to a whole folder:
be sure to allow access to your own domain though
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^
http://.*yourdomain.com/.*$ [NC]
RewriteRule /*
http://www.yourdomain.popuphell.html