Page 1 of 1

Prevent PDF downloads

Posted: Tue Aug 08, 2023 11:48 am
by dmkiveli
Hallo.
I have uploaded my website. However there are links to some PDF files which can be downloaded. How can I set them up to prevent downloading or copying but allow reading?

Kindly help.

Daniel

Re: Prevent PDF downloads

Posted: Tue Aug 08, 2023 11:56 am
by Pablo
There is no way to prevent the PDF from being downloaded, because for the browser to be able to read the document it needs to be downloaded first.
So, if the visitor can read it then the file has is already been downloaded.

Re: Prevent PDF downloads

Posted: Tue Aug 08, 2023 12:30 pm
by BaconFries
As Pablos reply there is no real way to stop it being downloaded. Not taking anything away from his reply maybe the following might offer a solution. Note even if this works a clued up person (computer savey) could still download the pdf or even just use screen print to copy and save.
https://stackoverflow.com/questions/619 ... 0the%20PDF.
As a alternative you could use a image instead and overly with a watermark just enough to allow them to read but put them of from copying...just a idea