Because of massive bandwith sucking hotlinking from myspace users, I have renamed all the images on my site. Is there any script or ammendment to .htaccess so that if somebody refers to any broken image on my site they see an image of my choice? Thank you.
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] replace "/images/nohotlink.jpe" with whatever image you want to use.