NYCPHP Meetup

[nycphp-talk] how to prevent documents from download

Gary Mort bz-gmort at beezifies.com
Fri Aug 31 09:23:12 EDT 2007


birgunj birgunj wrote:
> Dear All,
>  
> can any body tell me how to prevent documents from download using php.
>  
> thanks to all
>  

You don't.

If a document is available on the web server it can be downloaded.

If you provide a bit more background, there are tricks you can do with 
PHP to restrict access to files, but those files must NOT be publicly 
accessible, you basically make your php script the intermediary between 
the browser and the file.



More information about the talk mailing list