ikkeugh 0 Report post Posted June 24, 2007 hello , would it be difficult to let someone download a file if he enteres password (in total there are 5 random codes (numbers and letters))or on specific password ( for exemple : ldplozdfkopzd213213 (just my hand laying on the keyboard))when there always are 5 passwords and they regenerate themselves.and i could get one by entering another password .and if i called them , they should be good until someone enters it to download .I tought PHP , but it isn't that safe ...(so enything is possible)thanks Share this post Link to post Share on other sites
faulty.lee 0 Report post Posted June 25, 2007 hello , would it be difficult to let someone download a file if he enteres password (in total there are 5 random codes (numbers and letters))or on specific password ( for exemple : ldplozdfkopzd213213 (just my hand laying on the keyboard))when there always are 5 passwords and they regenerate themselves.and i could get one by entering another password .and if i called them , they should be good until someone enters it to download .I tought PHP , but it isn't that safe ...(so enything is possible)thanksCan you elaborate a bit more? Maybe use steps 1,2,3 to explain do you actually want. And also how you want the password to be prompted? HTML? Share this post Link to post Share on other sites
M H 0 Report post Posted June 25, 2007 Can You explain more Share this post Link to post Share on other sites
ethergeek 0 Report post Posted June 25, 2007 I think I see what he's getting at. Maybe he's writing an antileech download script to prevent offsite linking? In that case, this is pretty easy to do...just keep the files outside of the web root, have a script just fopen the file on the server and return it to the browser with the proper content-type set. Share this post Link to post Share on other sites
ikkeugh 0 Report post Posted June 25, 2007 (edited) one page (several files) with black background and white color font . As in the image , all should be in the center of the page. 5 (or with generated code : 6 ) lines (color : white , background : black) everything is seen , (not orange things) first line : Requested file : 12345678912345_7.exe (always stays the same) second line : Download code : (and box to fill in) third line : Generate key : (centered) forth line : Admins code : (and box to fill in ) fith line: Download file ! / generate code ! (2 buttons ) (sixth line : Generated key ( and box with 17 symbols ) directly underneath the 2 buttons ) When the admin clicks generate code : there should be a code (17 symbols)generated into a file and saved . That code stays active untill somebody uses it .So if the admin clicks on the button if the code isn't used yet , this should also be saved into the file . Also untill somebody uses this . And I don't want that somebody could download the file simply by putting the good name into the browser. thats why I tought Java thanks Edited June 25, 2007 by ikkeugh (see edit history) Share this post Link to post Share on other sites
toby 0 Report post Posted June 26, 2007 (edited) You could just use the first 17 letters of md5 of the file name?What is the link between the file and the random code?edit: Oh, the file is the same, then loads of random 17-long strings in a file, which any can be matched by the second box? Edited June 26, 2007 by toby (see edit history) Share this post Link to post Share on other sites
ikkeugh 0 Report post Posted June 26, 2007 edit: Oh, the file is the same, then loads of random 17-long strings in a file, which any can be matched by the second box?Yes , when the admin generates a download code , this one is saved somewhere (in one file)this one is useable untill someone uses it . but there can be several download codes .when someone enters a correct download key , the file can be downloaded Share this post Link to post Share on other sites