Reputation: 5283
I am working on online pdf library project. In this I have a feature that any user can read the file.But if the file is readable than it is sure that i can be downloaded. Is there any way so that we can block user to download that file.? If he want to download the file than he have to signup..Can php pdf library can help us?
Upvotes: 0
Views: 1195
Reputation: 162
That is not possible. As Jamie said, reading is downloading. When a user is reading a file, browser is downloading that file to temp. So even if you disable the download button, the user can click "File -> Save As" or copy that file from temp folder.
A solution is to give only a sample (first few pages, for example) to the public, and to access the full, they need to signup. I have no better solution in mind that to manually keep 2 files in the server - full and abstract.
Upvotes: 3
Reputation: 14873
use js/jquery, when download button hit, trigger signup page and upon completion you can allow download. similar to docstoc.com
Upvotes: 0