I just tried to fusker my site and it failed so I know this code works:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|fla|mov|avi|wmv)$ - [F,NC]
If you all see a problem with it please let me know.
Additionally if you want to protect your directory structure from being viewed pop this little bit of code in there:
Then you will not have to put an index.html in each directory.
-A