httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <>
Subject Re: [users@httpd] how do I prevent sites from hijacking my images?
Date Wed, 06 Nov 2002 10:09:39 GMT
dale's stuff wrote:

> Hello,
> I was just processing my logs and have found that once again some scum 
> are stealing some images from my site and linking directly to them.
> I am running apache 1.3.2x on RH Linux 7.1. I would like to be able to 
> serve a different image to these scum to get the point across that 
> they can'
> t be stealing my images -kind of like what angelfire and so forth do.

Here's an idea for those of you really serious about stopping people 
from doing this. Continually change the image name.

Have the image named somwhere permanently like in a database table, and 
change the href name value periodically (like logo being the name, 
logo2776.jpg being the href value). When you spit your html out, do a 
lookup for the current href name of the image in the database, output 
this as something like /images/get.php?image=logo2776.jpg.

Then you can look the href value for 'logo' up and get 'logo2776.jpg' 
from the database. All you'd need is a get.php script that took the 
image filename and did a reverse lookup of the filename (logo2776.jpg) 
to internal name (logo) then did a readfile off the disk for the real image.

Next you'll need a script to periodically alter the href name in the 
database. The result should be a way of having an internal coding for 
the filename on disk, which  is looked up in your database.

Like I said, this is for people seriously annoyed by the thefts only, 
but I suspect it would work. After all, logo2776.jpg will disappear from 
your database when you run the alter href script every few hours or 

Just a suggestion.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message