httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tig <>
Subject Re: [users@httpd] Custom authentication?
Date Sun, 09 Jan 2011 10:00:38 GMT
With some tweaking the following will work: 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 as /<filename>-123456.txt - then makes a
request to as /dl.php/<filename>/salt makes a request for the contents of<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 to clear out the tmp files.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message