Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 15th, 2008, 03:27 AM
Registered User
 
Join Date: Apr 2008
Location: , , .
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.

Reply With Quote
  #2 (permalink)  
Old October 5th, 2008, 07:36 PM
Authorized User
 
Join Date: Oct 2008
Location: , , United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:11 AM.


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