[eluser]madeks[/eluser]
Hi all,
I need some help or idea to archive this work.
The situation is this.
I have 2 servers, one is a server to run the website and one for storing a file.
This main server will need to return a digital file from another server.
The file from another server will be returned to the user by the header as a bytes transfer, not via http.
The file should not accessible via http. I mean the real file cannot access by http but the returned file will be via http.
For example, user login to the website and click to download file, the website return a file to save.
I have some idea from the top of my head.
1. I put one script on the new server to check and run all secure logic and return the correct file.
The problem is I think this file cannot read the session from the main server?
So it will need another login to get user information. It is preferred.
2. Some server configuration that allow the script on the main server to access a file from another server? Not sure this is possible?
3. Make the file accessible via internet some how but only allow 1 IP (the main server ip) to access it. Not sure maybe with HTACCESS?
Those 3 options still not look good to me.
I think there should be a better way to do it.
Anyone had been done this kind of application before or any idea about it?
Thanks in advance.