There is a specific image on my site being hotlinked. How do I make it so an image from a different website is hotlinked instead of that specific one. I just want to make people see a scary image instead of looking at mine. I have a hotlink code now but it works on all images but Instead I just want it working on only one
RewriteRule protected/(.*)$ http://domain.tld/hotlink.jpg [R,NC,L] was from the first result on google but was for a whole dir, so i'd probably try this: RewriteRule path/to/image/being/hotlinked.gif$ http://www.site.com/nastyimage.gif [R,NC,L]
Post what you have that works with all images, and post the address to the image you want it to work on.
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpeg [L] I want the hotlink protection to only work on http://animeomnitude.com/content/reviews/beck/beck.jpg
RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteRule beck\.jpg$ /images/nohotlink.jpeg [L] Code (markup): Place it in the htaccess of the /content/reviews/beck/ directory.