RewriteCond %{HTTP_REFERER} !^$              # Referer field exists
RewriteCond %{HTTP_REFERER} !^http://your.site.com/ [NC] # and not my site
RewriteRule [^/]+\.(gif|jpg)$   -   [F]  # [F]orbid access