Forum Moderators: open

Message Too Old, No Replies

displaying different picture when linked from elsewhere

how to do this?

         

JonB

11:34 am on Feb 5, 2002 (gmt 0)

10+ Year Member



Sometime i seeon the forums that people try to display image from someother domain. Let say that www.domain.com has some picture at www.domain.com/pic.jpg

Then if you link directly to this picture from YOUR site whcih is on DIFFERENT domain and host: <img src="www.domain.com/pic.jpg">

then you steal trafic to other domain.

If you do this to some sites like geocities then they will not display original pic or file but they will display small picture says somethign like "this file is hosted on geocities.com"

This is some kind of protection that people dont steal your trafic .

I have some jokes pages and from time to time i see people stealing traffic to me and dispalying my pictures on forums etc.

So I want to know how to replace requested graphic file with my AD? :) like "visit mysite.com to see this picture".
Does anyone know how to do this? Is this html code or java?

If you dont know what iam talking abou, I can say again. It is hard to explain.

Jon

TallTroll

11:48 am on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use CSS absolute positioning to overlay 2 images, 1, the background, which is the original image, and 2 a high transparency watermark right over the top

Drawback: user CSS will overcome this (just move or ignore the second image)

Second idea would be to use a similar trick using CSS. Take the original and split it up. Use absolute positioning to reassemble the bits.

I'm really not sure that could be made to work though. It would probably be more trouble than its worth

The third idea is to have 2 images, one with and one without a watermark. You then have only to find a method of altering which is shown according to where the request comes from, and I have no idea how to do that

Marcia

11:55 am on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jon, what they're doing is stealing bandwidth. It's been a major problem with sites like Geocities and Tripod that host a lot of free graphics sites. Some people's sites have been shut down because of all the extra traffic load. So people have to pay for extra bandwidth on some private sites, and the people who link directly to graphics are ending up stealing money from people.

I have people linking to some graphics constantly, and have to take the time to change the filenames and pages and links.

Some people have gotten so fed up they replace with an image that says "Bandwidth Thief." It gets done even when you plainly state at the very beginning that they should be used on their own server.

What I'd really like is a script that would automatically present the intruders with a graphic to replace the one they're linking to with one that would say something like "Image Hosted By" - like Lycos has, if they're linked to from outside the domain.

wardbekker

11:58 am on Feb 5, 2002 (gmt 0)

10+ Year Member



I use dynamic generated images by an asp script (img src:image.asp?id=234623). If the referrer is different than my website i send them a nice 'don't rip it' message.

gethan

12:22 pm on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using mod_rewrite and .htaccess (Apache needed)


RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourserver/.*$ [NC]
RewriteRule .*\.gif$ - [F]

extend for jpg's etc.

To put in a new image have an image in another directory and use something like:

RewriteRule .*\.gif$ /denied/noinline.gif

from :- [engelschall.com...]

wardbekker

12:31 pm on Feb 5, 2002 (gmt 0)

10+ Year Member



Is there a way to do this on IIS?

JonB

12:47 pm on Feb 5, 2002 (gmt 0)

10+ Year Member



thanks for the replies :)

Marcia: i did this too, i changes names etc BUT since my site sells I got an idea- when I see someone linking to my picture I put "www.mysite.com - visit bla bla" ad with big white letter on picture. That is how i get free ad :)

I know this cant be done always, i am lucky since people link mostly to my JOKES pictures.

wardbeker: can you post e-mail of this script. or if it is your script sticky mail me with details.if this is possible.thanks.

txbakers

1:15 pm on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you could do it on IIS by using an ASP code.

Let me try it and see what I can come up with. I'd be glad to shre that one.

Xoc

4:38 pm on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I tried some stuff and think it has to be done with an ISAPI filter on IIS.