httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tig <tigger...@gmail.com>
Subject Re: [users@httpd] Custom authentication?
Date Sun, 09 Jan 2011 10:00:38 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message