gcreddy Posted September 13, 2009 Share Posted September 13, 2009 Hello....I am a novice and have been developing a secure file transfer system in php....I want to enable ONLY my clients to be able to download their files......for example....in my code....if I write the following line <a href="/images/image1.jpg">Download here</a> My client should be able to download that file.....however.....if someone types "http://www.domainname.com/Folder1/images/image1.jpg" and pastes it into their browser....the access should be denied.... Infact....if some one types "http://www.domainname.com/Folder1/" the contents of the folder also shouldn't be displayed.... Can someone tell me how I should change the permissions (right now all the permissions are set to 0755 i.e. rwxr-xr-x) on my server and the changes (if any) that should be done to my code to enable this feature?? Regards, G.C.Reddy Link to comment https://forums.phpfreaks.com/topic/174050-setting-file-permissions-for-secure-download/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.