Renaming the images and then editing my blog entires to reflect the changes was an incredible pain in the butt. So, I did a google on it.
I added the following code into my .htaccess file
Code: Select all
# Begin hotlink image replacement
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?opendirviewer\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ images/no_hotlink.gif [L]
# End hotlink image replacement
Sure... I could have just told it to not serve up anything, but I'm trying to educate while wacking them with a stick.
Feel free to steal the above code and place it in your own .htaccess file (unless, of course, you have a site onj one of those domains and hotlink back to your own..... then it'll screw you over).
Oh.... you will have to have an replacement image in /images/ called no_hotlink.gif to make it work.
Oh... and here's the image I offer up in replacement to the one they hotlinked to.
Enjoy!