Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^
http://(www\.)?216.xxx.xx.xx(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^
http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^
http://(www\.)?myotherdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$
http://www.mydomain.com [R,NC]
the rewritecond allows you to specify what domains can link the images
the rewriterule redirects them.
the hahaha123 are supposed to be brackets
http://www.htmlbasix.com/disablehotlinking.shtml