May 19, 2001, 8:44 PM
Post #1 of 3
Hi. I run a small free web hosting service, and am having problems with people storing their images on my server, and then linking to them from other websites (thus using my bandwidth and costing me money!). Is there any way that I can stop people from doing this?
Stopping offsite linking to images
I know that I could write a script in Perl, but the only way that I can think of doing this is having all the images behind a script ie. instead of the location of each image being shown as www.mydomain.com/image.jpg then it would be something like www.mydomain.com/cgi-bin/imageprotector.cgi?image.jpg. However, this isn't very practical for my purposes.
I've noticed that with the larger free web hosting providers such as GeoCities, if you try to link to images stored on their server from offsite, you will be shown an "error" image in their place. Does anyone know how they do this? Is it something that can be done on the server level? (I'm running my site off a dedicated Unix server; is there anything I can set on the server to stop people linking to the images on there?)
Any suggestions or help would be very much appreciated!