sure,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .(gif|jpeg|jpg|png|swf)$ [NC]
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !village-idiot.org [NC]
RewriteCond %{HTTP_REFERER} !google. [NC]
RewriteCond %{HTTP_REFERER} !bloglines. [NC]
RewriteCond %{HTTP_REFERER} !feedburner. [NC]
RewriteCond %{HTTP_REFERER} !search?q=cache [NC]
RewriteRule (.*) https://www.someotherevilsite.com/otherimage.png
This is what protects *some* of my files. Note, that I send hotlinkers off to another site completely. I tend to chose the most obnoxious images I can find.
what usually happens… some unsuspecting flub comes along, sees a cool image, goes back to some forum and posts it…. minutes later a moderator has removed the picture because its SO offensive. The funny thing is because the image is cached, the original hotlinker doesnt see what everyone else does, so they never get it.
I hate hotlinkers.
It is arguable that I am doing the same thing with my redirect. However, because I choose images that are horribly offensive to most people, they dont last long on most sites.