Forum Moderators: coopster
1. hides file extension/ file name
2. hides the directory of the file
3. stops download leeching
4. no link back for the download (other sites puts download link on their site for the download)
5. ability to see stats of downloads
6. force downloads (pdf files doc files etc)
I think that is it - I am looking for a real good one specifically a free one as I tried some others and I didnt like them after testing it out...so are their any good simple ones out there?
Best of luck!
<?php$file = "/path/to/file.zip";
// You can put anything you want here, maybe some download tracking code and anti-leech etc..
// Now force the download without revealing its path
header("Content-type: application/zip");
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Length: " . filesize($file));
echo file_get_contents($file);
?>
[edited by: FiRe at 12:58 pm (utc) on Oct. 24, 2006]