Re: Custom authentication?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With some tweaking the following will work:

client.srv.com has the file listings, makes an MD5 of the filename
plus a salt (random string, lets call it 123456) and writes the MD5 to
the disk of client.srv.com as /<filename>-123456.txt - then makes a
request to dload.srv.com as /dl.php/<filename>/salt

dload.srv.com/dl.php makes a request for the contents of
client.srv.com/<filename>-salt.txt and checks that the MD5 of
<filename> and salt match what was returned, if so serve the requested
file through php with the correct header('Content-...') details.

Use a cron job on client.srv.com to clear out the tmp files.

-Tig

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux