Hi
I've a website, in which one folder stores images. I don't want my visitors to download my images by inserting the image's path into the browser's location bar. (They can only access to those images from my website.)
This is what I want:
Visitor --> PHP --> Image
and NOT
Visitor --> Image
The image folder can only be access through a server side PHP script
I'm able to protect my image folder using .htaccess.
What do I need to do, so that the PHP script will login to my image folder automatically whenever the script is called without popping up a window asking me for username + password?
Is it possible (if so, how) to include my login+password in the header... so, whenever I call an image from PHP code, PHP will use that login info to access the required image. By doing this, one must go through my script in order to access the image; thus, blocking hotlinking or direct displaying
(This may not be a perfect idea)
Thanks in advance
