How can we restrict a user from changing the download path url's fine name.
-
Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani
-
Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani
First, you would need to have the user login. Then using the associated cookie/token have permissions associated with those files.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun -
Ex: If I send user the download url like http://www.mysite.com/downloads/file1.pdf but there are file2.pdf,file3.pdf in the same folder and user can simple rename the file1.pdf to file2.pdf in the url and he can download file2.pdf. How can we restrict users from doing this. I really appreciate for you help.... Thanks Nani
Another answer would be to make the names of the files hideously complicated and non sequential. Thus if he wanted to load the first file, 'File1' then fine, but he would presume that the second file would be 'File2' not 'DannyBoyK4ZqZarniwoop' or some such thing.
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]