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
hide download link
Moderator: General Moderators
Re: hide download link
Code: Select all
<?php
header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="'.$zip_file.'"');
echo readfile($zip_file);
?>