I know how to replace hotlinked images from my site with a single default image using the following code in my htaccess file
but what I want to do is display a different image for the hotlinked image. for example if image 123.jpg from the folder 'images' is hotlinked, i want the file 123.jpg from the folder 'watermarkedimages' to be displayed. How would I edit the htaccess code to do this?
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
but what I want to do is display a different image for the hotlinked image. for example if image 123.jpg from the folder 'images' is hotlinked, i want the file 123.jpg from the folder 'watermarkedimages' to be displayed. How would I edit the htaccess code to do this?