Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2008, 03:27 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Encrypted URL download link

Hello. I've been asked to design and develop a website which will have downloadable files (pdf, wav and mp3).

The URL (links) for these files need to be "hidden" so that only authorised people can download them.

Is there any way of supplying users of the site with a "once-only" encrypted URL link to the file that they want to download?

This could either be:

1. a password that ONLY works for their email address,
2. a URL that expires after a short time,
3. a script that moves the selected files into a temp directory with a random name, and deletes them after a short time.
4. an exe that downloads them without showing the user the links.

I'm stumped. Does anyone know how to do any of the above?

Are there any scripts (any language) out there already written that do something similar?

Can anyone think of a better solution?

Thanks.

 
Old October 5th, 2008, 07:36 PM
Authorized User
 
Join Date: Oct 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

create a page which knows the file path and can work as proxy to stream out the content of the file using this file pass say. fileproxy.php

on the page where the users ask for file create a table where you should store the path to file for each access and pass this id to fileproxy.php and once the download is complete delete the record from the table.

http://FindaJobSearch.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Short URL Link ? jacab HTML Code Clinic 3 October 9th, 2007 04:55 PM
How to link my button to a URL? larry Flash (all versions) 1 June 26th, 2007 01:00 AM
asp:imagebutton link to New url nawski ASP.NET 1.0 and 1.1 Basics 12 November 5th, 2006 07:50 PM
Download through url dotnetprogrammer VS.NET 2002/2003 3 December 20th, 2004 06:03 PM
Radio buttons - link to URL larry HTML Code Clinic 2 November 20th, 2003 08:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.