Greetings. I'm in the process of creating a file host and am looking to purchase this script. To help minimize server load I was planning on using mod_auth_token to authenticate downloads for a period of time, rather than piping the download through a CGI script.
I don't think it would be too terribly hard, you just need to generate a URL that has an encoded timestamp. Here's some sample code I've been playing around with.
Code: Select all
<?php
$t = dechex(time());
$url = '/test/'.md5("secret" . "/file.zip" . $t).'/' . $t . "/file.zip";
echo "<a href=\"$url\">$url</a>";
?>
I think I'll give it a shot anyhow, but if you have any tips I would appreciate it.
Thanks.