Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i avoid download from a link more than once by copying download link.After downloading a pdf i can copy the download url and again download it.How to avoid this.
Posted
Comments
Umapathi K 5-Apr-14 0:47am    
Is the user need to login to download the pdf file or any one can download the file? can you elaborate the credential here?
Sharon 2 5-Apr-14 0:59am    
user login and download the pdf.after download.anyone can copy the download link and download it again.
PIEBALDconsult 5-Apr-14 1:00am    
"Don't use a link" comes to mind, but I'm no Web developer.

1 solution

Use the session check for logged in user. If same user re-download, Show him message. Let me know if more help required
 
Share this answer
 
Comments
Sharon 2 5-Apr-14 1:02am    
user login and download the pdf.after download.anyone can copy the download link if it is mozilla and download it again.
Er. Puneet Goel 5-Apr-14 1:22am    
is that downloading from your own website page or somewhere else?
Sharon 2 5-Apr-14 1:30am    
own site only.the process is download the pdf by clicking on linkbutton and a new pae open and download code is written there.after that a save dialog box will come download it and from browser user can copy the url and download it again as much as user want.here there is a limit of upto 4 times
Er. Puneet Goel 5-Apr-14 2:30am    
ok than on that page before letting the download start, call a method that will check that if the user with the userID has download this pdf 3 times, just show a message.
Sharon 2 5-Apr-14 2:56am    
then also i have to give a condition as if(remainingdownload ==0)but at that time last download wont happen.
if downloadvalue<3 cant tell like this but has to tell downloadvalue<=3 then only last download happens.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900