novarahman001 Posted November 24, 2014 Share Posted November 24, 2014 i need a download system like www.filehorse.com. can plz tell me how? its generate link 4 download for limited time. without giveing hot link. plztake a look and help me out Quote Link to comment Share on other sites More sharing options...
ginerjm Posted November 24, 2014 Share Posted November 24, 2014 No thanks. We help people with coding problems (at least that's what I try to do). Not with doing research for your design issues. Quote Link to comment Share on other sites More sharing options...
novarahman001 Posted November 25, 2014 Author Share Posted November 25, 2014 not design i am looking help 4 php coding Quote Link to comment Share on other sites More sharing options...
ginerjm Posted November 25, 2014 Share Posted November 25, 2014 Great! As I said originally - we help with coding. Show us the code you have a problem with and you'll surely get help with it. Of course if you don't have any code, then I'd still call that a 'design problem'. Quote Link to comment Share on other sites More sharing options...
Solution QuickOldCar Posted November 25, 2014 Solution Share Posted November 25, 2014 I see filehorse generating a link to a direct download with no expire. http://www.filehorse.com/download-avast-antivirus/download/ There are other sites that do that though, basically setting a token in a url that can be used once or expire in a certain amount of time. http://en.wikipedia.org/wiki/Tokenization_%28data_security%29 Sometimes their links are just their own custom versions of the hashed file locations or is an associated random token. The download locations and hash values could be saved in a database. Other methods such as sessions or cookies can be used as well with expires. When a user clicks the link they are directed to a script which uses the hash or by using the token id will know the files location. As well as the hash can also add timestamps for expiration times. Quote Link to comment Share on other sites More sharing options...
novarahman001 Posted November 25, 2014 Author Share Posted November 25, 2014 QuickOldCar thanks . can u provide some links from where i can find more help? tutorials Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted November 25, 2014 Share Posted November 25, 2014 Can use mod_auth_token apache module https://code.google.com/p/mod-auth-token/ This is very old, but has what you are looking for. For your own good don't just use this exact code and run it. Use it as a guide of how to go about it. http://ardamis.com/2008/06/11/protecting-a-download-using-a-unique-url/ Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted November 25, 2014 Share Posted November 25, 2014 Instead of using $_SERVER['REMOTE_ADDR'] I would use... $remote_ip = $_SERVER['REMOTE_ADDR']; if (strstr($remote_ip, ', ')) { $ips = explode(', ', $remote_ip); $remote_ip = $ips[0]; } Quote Link to comment Share on other sites More sharing options...
novarahman001 Posted November 25, 2014 Author Share Posted November 25, 2014 QuickOldCar thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.