Hi,
Question about linking to images:
I'm building a site that allows uploading of images. I'll be putting them in a MySQL database, and accessing them through something like www.mysite.com/getimage.php?image=myimage
I'm fine with how to do this, BUT I'd like to do one other thing. I don't want people to link directly to my images from their sites, as I pay for my own bandwidth, and it's just a hobby site, really. I don't want it turning into a free-for-all image hosting service!
So, my guess is that I can check $HTTP_REFERRER in my PHP script that gets the images out of the database, to make sure it came from my site... But this won't work on all browsers, or through all proxies. Is there any other solution?
I've heard of something I can do to configure the apache server, but I'm running off a shared hosting system so I can't do this.
Any ideas? Or do I just have to go down the referrer route?
Simon