Page 1 of 1

hide download link

Posted: Sun May 04, 2008 3:48 am
by html20009876
how to hide download link?

E.g.

I have a zip file:
http://www.mysite.com/path/to/my.zip

I hope use can download the zip file without seeing its link from any download tools.

I need php code.

Thanks

Re: hide download link

Posted: Sun May 04, 2008 8:52 am
by Kastor
:wink:

Code: Select all

<?php
header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="'.$zip_file.'"');
echo readfile($zip_file);
?>