XFileSharing Free - mod_auth_token

Posts: 1
Joined: Sep 28, 2007 5:01 pm


#1 Postby shackrat » Sep 28, 2007 5:07 pm

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

  $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.


Return to “XFileSharing Free”