RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(www\.)?evilwebsite\.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://forum\.evilwebsite\.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?bandwidththieves\.net [NC] RewriteRule \.(jpeg|jpg|gif|bmp|png|JPEG|JPG|GIF|BMP|PNG)$ http://example.com/pwnt.gif [L]
example.com/pwnt.gifis the location of the file you want to serve in place of the hotlinked image. Mine just says 'PWNT'.
Alternate last line to simply block the images from being hotlinked instead of serving a replacement image:
RewriteRule \.(jpeg|jpg|gif|bmp|png|JPEG|JPG|GIF|BMP|PNG)$ - [F]