Some of You have already enough of these "htaccess codes for blocking hotlinked images" - almost everything is already answered on this forum. What I want to do, rather than serving one default image for all linked original images, is to redirect these request to another folder with "same" images. In details: someone is getting my image on the forum or his web site. My image is on my site in /images ie. /images/1234.jpg and now I want some way to serve for all external request /images2/1234.jpg I can make second folder - "images2" and place there all my jpgs from "images" but first put across them BIG "MYDOMAIN.COM" logo or text. If someone is on my site he can see original image, on all other sites they should see image with my domain name IN BIG FONT. I think that this solution would work for many people. Not just showing "don't steal images" picture but do something good for both sides, let them know that this image is from Your site. Can someone write this rule for htaccess file. It is like redirecting to another folder, but only for images and only for referer from outside of my domain. If this is already done - sorry, I can't find it. I can't write it myself, I would take ages to test all possible codes for me. Anybody has an Idea?
Hi krzys, we're pleased to have you join us at WebmasterWorld! :)
Since there are thousands of webmasters and many of them seek free code we've adopted a policy that's in the Charter [webmasterworld.com] for this forum. Specifically, I'd like to direct your attention to this section:
This is not the Apache mod_rewrite support desk! PLEASE do your homework before posting a mod_rewrite question. We prefer to limit discussions to mod_rewrite aspects not already covered. For beginners, an introduction to Apache redirects and mod_rewrite is available here [webmasterworld.com].
I can't write it myself, I would take ages to test all possible codes for me.
I urge you to read this Introduction post [webmasterworld.com], then study and at least learn some basics. Then post your own solution. Some of our regular members will be happy to help you debug it and you will be able to maintain it and enhance it in the future.
It seems that English may not be your primary language which could make learning difficult for you. If so, posting an ad in the Commercial Exchange forum and hiring someone to write your code for you may be an attractive option.