netlovers Posted August 18, 2006 Share Posted August 18, 2006 I want to hide original download link in phpsuppose i have 2 files with the following linkshttp://www.domain.com/file1.zipandhttp://www.domain.com/file2.zipnow i donot want to show these real link to users i want to create a file download.phpwhen this file calls like thiswww.mydomain.com/download.php?id=1 it gives download of file1.zip whose link mentioned aboveand when download.php calls like thiswww.mydomain.com/download.php?id=2 it gives download of file2.zip whose link mentioned aboveand so onSo plz help in this matter and tell me which function of php do i need to use in creating this do i need to use mysql. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 18, 2006 Share Posted August 18, 2006 From the Frequent Q & A here ... http://www.phpfreaks.com/forums/index.php/topic,95433.0.htmlThat should point the way to do what you want. Quote Link to comment Share on other sites More sharing options...
radalin Posted August 18, 2006 Share Posted August 18, 2006 But this will not prevent someone who knows the exact location of your file. If I know that file's location is http://www.domain.com/file1.zip then with writing this link I can download it. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 18, 2006 Share Posted August 18, 2006 Using one-time URLs is about as bullet-proof as necessary for this:http://www.onlamp.com/pub/a/php/2002/12/05/one_time_URLs.html Quote Link to comment Share on other sites More sharing options...
netlovers Posted August 18, 2006 Author Share Posted August 18, 2006 http://www.phpfreaks.com/forums/index.php/topic,95433.0.htmlAbove link is not helping me so does anybody has another solution. Quote Link to comment Share on other sites More sharing options...
corbin Posted August 18, 2006 Share Posted August 18, 2006 [quote author=AndyB link=topic=104749.msg417996#msg417996 date=1155911489]Using one-time URLs is about as bullet-proof as necessary for this:http://www.onlamp.com/pub/a/php/2002/12/05/one_time_URLs.html[/quote]That should solve your problem perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.