xtent Posted October 25, 2019 Share Posted October 25, 2019 Basically I would like to place a link on my website and have the user download a file, but rather than just right clicking and choosing save target as, the link must be clicked, on the next page the file is fetched and then the client can download the file. How would I go about setting this up please? When the download appears the link that is produced doesn't show the actual download either, so users can't leech of it. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/309416-php-download-redirect-to-page-and-finish-download/ Share on other sites More sharing options...
requinix Posted October 26, 2019 Share Posted October 26, 2019 3 hours ago, xtent said: Basically I would like to place a link on my website and have the user download a file, but rather than just right clicking and choosing save target as, the link must be clicked, on the next page the file is fetched and then the client can download the file. How would I go about setting this up please? Set up the second page to show what you want, then use Javascript to "redirect" to the download. 3 hours ago, xtent said: When the download appears the link that is produced doesn't show the actual download either, so users can't leech of it. If you think not showing them the link means they can't download the file at will, you're quite a bit mistaken. Quote Link to comment https://forums.phpfreaks.com/topic/309416-php-download-redirect-to-page-and-finish-download/#findComment-1571013 Share on other sites More sharing options...
xtent Posted October 26, 2019 Author Share Posted October 26, 2019 Not mistaken at all, you can mask the actual download link, but thanks for thinking you cant. Quote Link to comment https://forums.phpfreaks.com/topic/309416-php-download-redirect-to-page-and-finish-download/#findComment-1571015 Share on other sites More sharing options...
requinix Posted October 26, 2019 Share Posted October 26, 2019 3 minutes ago, xtent said: Not mistaken at all, you can mask the actual download link, but thanks for thinking you cant. If you mask the link then how will the browser know where to go? If the browser knows then the user can know. Quote Link to comment https://forums.phpfreaks.com/topic/309416-php-download-redirect-to-page-and-finish-download/#findComment-1571016 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.