PHP readonly

Networking/Security Forums -> Programming and More

Author: LyricoLocation: Philippines PostPosted: Fri Nov 26, 2010 2:48 am    Post subject: PHP readonly
    ----
Hi everyone.

Can you tell me how can i restrict the uploaded file to make it read only? I mean, for example, I uploaded a .pdf file on the server and i want that when the user access the file, it can open but they CANNOT save it in their local machine. Is that possible?

Please help me.

Thanks

Author: krugger PostPosted: Fri Nov 26, 2010 4:29 pm    Post subject:
    ----
You are looking for PDF DRM. Have a look at:

http://www.locklizard.com/pdf_security_drm.htm

One of the various companies that sells suport for what you are trying to do.

Author: LyricoLocation: Philippines PostPosted: Wed Dec 01, 2010 4:21 am    Post subject:
    ----
Krugger,

Thanks for the reply.

I want not only with the .pdf file. I have different file on my server. .xls, .doc, .ppt etc. I just want that, if the user access the file, they can open it for the review purposes by i don't want them to save the file on their local machine.

this is my sample codes:
<?php

echo "<a href='folder/sample.doc'>"."Sample 1"."</a>";
?>

now i want that when the user access the "sample.doc", they can view it but they are not able to save it.



Networking/Security Forums -> Programming and More


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group