RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
mod_auth_token

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
shackrat



Joined: 28 Sep 2007
Posts: 1

PostPosted: Sep 28, 2007 5:07 pm    Post subject: mod_auth_token Reply with quote

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:

<?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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group