abdfahim Posted July 2, 2007 Share Posted July 2, 2007 I have a folder containing images and I protected it so that no one can directly access/download those images. So, Now if anyone directly type "www.myaddress/protected/image1.jpg", the browser asks for username and password (which I have set). But i want to link those images in another php page "www.myaddress/link.php". But the problem is this page also asked for password. Is there any way to enter username and password through php coding in that page "link.php" ? Btw, I protect the folder through a built in feature in www.pro-hosts.org and I think they use .htaccess format. Quote Link to comment Share on other sites More sharing options...
abdfahim Posted July 3, 2007 Author Share Posted July 3, 2007 I think I am not clear in my question. I have folder where I put some files and put the links to those files in my website in a link page. Now my website requires signing and any one sign in, can download those files. But to make it sure that without signing in, no one can download those files by direct linking, I made the folder protected so that in case of any direct linking, browser asked for a username and password. But the problem is now when I tried to load the link page, whether i am signed in or not, it asked for password. Thats why I am looking for a php code with which I can put the password inside the link page so that no password is prompted when loading that page.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.