• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Resolved] Securely Access files from other server

#8
[eluser]TheFuzzy0ne[/eluser]
I was trying to suggest that your users download the file straight from server 2, as transferring the file from one server to another could cause a slow down, especially if they aren't on the same local network. The way I had in in my mind, would work something like this:

Do whatever authentication you need to on server 1
Server 1 sends a request to server 2 containing the a key (an MD5 hash of the date with the microtime should be fine).
Server 1 redirects over to server 2, using the key in the URL
Server 2 validates the key against the database, and if it's valid, initiates the download, and removes the entry from the database (before the download starts). I'd also suggest a 30-60 second expiration on the keys, so if the download is not started, it's removed from the database.

Does that help you at all?


Messages In This Thread
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 03:27 AM
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 04:13 AM
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 08:42 AM
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 09:34 AM
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 09:42 AM
[Resolved] Securely Access files from other server - by El Forum - 07-14-2009, 09:47 AM
[Resolved] Securely Access files from other server - by El Forum - 07-15-2009, 06:21 AM
[Resolved] Securely Access files from other server - by El Forum - 07-15-2009, 08:06 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.