tommykjensen
31st of December 2004 (Fri), 11:56
I got my new hosting yesterday ( my original site got wiped out by the Santy worm so I decided to get a proffesional host).
My new host is running on linux and use apache so I now have the ability to use .htaccess but how can I achieve following:
- a script is used to display the photos
- the script read the photo from a folder
- individual users should not be allowed to view the photo by entering the full url to the folder where the photos are store
example:
to see photo: http://url.com/script.php?name=photo.jpg
the photo is stored in
http://url.com/hidden/photo.jpg
users must not be able to use the last url to view the photo only the first one.
Is this possible?
My new host is running on linux and use apache so I now have the ability to use .htaccess but how can I achieve following:
- a script is used to display the photos
- the script read the photo from a folder
- individual users should not be allowed to view the photo by entering the full url to the folder where the photos are store
example:
to see photo: http://url.com/script.php?name=photo.jpg
the photo is stored in
http://url.com/hidden/photo.jpg
users must not be able to use the last url to view the photo only the first one.
Is this possible?