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. Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/ 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. Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/#findComment-76737 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. Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/#findComment-76750 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 Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/#findComment-76761 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. Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/#findComment-76946 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. Link to comment https://forums.phpfreaks.com/topic/17944-hide-original-downloads-link-through-php/#findComment-76973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.