SetEnvIfNoCase Referer "^http://example.com" valid_link=1
SetEnvIfNoCase Referer "^http://www.example.com/" valid_link=1
SetEnvIfNoCase Referer "^$" valid_link=1
<FilesMatch "\.(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=valid_link
</FilesMatch>
Change "example.com" to your own domain. No, I can't troubleshoot it for you.
Nice. Thanks for sharing. But I have a question. You may not be able to answer it, but your readers may be able to.
Is there an easy way to tell when you are being hotlinked?
I find out when I look at my referrer logs (or however you get your Web stats).
I look at my referrer logs, but have not actually looked with an eye to discovering hotlinking. I'll give it another go. Thanks.
I have always found them by accident: a new referrer, I check to see what the person has linked to, and then, instead of a link, there is an image from my site on the page. (You can check source to see whether it's been linked directly from your site.)
In any case, if you prevent hotlinking you don't need to worry about it at all.