Re: moving
| From: | Markus Fischer | Date: | Sun, 28 Jan 2001 09:15:17 +0000 |
| Subject: | Re: moving | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6239@lists.php.net to get a copy of this message | ||
On Tue, Jan 23, 2001 at 05:13:24PM -0800, bryan wrote :
> I have a site where people have to pay for the pictures. He is
> a professional photographer and does not want people stealing
> his work. When they download and image, they pay for it. The
> problem with that is, if I have images named 001.jpg, 002.jpg,
> people can type that into the URL and get the other image
> without paying for it. Is there a way to rename a file once
> clicked on to download to eliminate this from happening?
>
> So, the user clicks on the image, called from the database,
> have it renamed, and then delete it from the database, so they
> never see the real filename...
Store your images _outside_ you document root folder of
your webspace and you a php-script to pass it to the client. This
script checks for cookies, session or whatever and only outputs
the right image when a valid user.
m.
--
Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: mfischer@josefine.ben.tuwien.ac.at
PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0