homepage Welcome to WebmasterWorld Guest from 54.163.139.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess and bloked images - another way
a way of redirecting to another folder with images
krzys

10+ Year Member



 
Msg#: 400 posted 6:33 am on Sep 27, 2003 (gmt 0)

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?

thanks,
Krzys.

 

DaveAtIFG

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 400 posted 7:04 am on Sep 27, 2003 (gmt 0)

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.

Again, welcome aboard!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved