Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Hidden File Download Path
Old 06-05-2005, 03:59 PM Hidden File Download Path
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Hey

Im not sure if this is possible or what the best way/language to use if it is but hopefully you guys can help.

I want to be able to let users download specific files but not let them see where they are coming from - this is because i dont want users to be able to guess a file name and download a file without going through the correct process (i.e. paying for it)

Hope this is clear enough and any help or pointers in the right direction are welcome.

Cheers
Stoot
stoot98 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-05-2005, 08:47 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
What server side language are you using? With ASP.NET you can use BinaryWrite to write the contents of that file to the client. You can then add code into that ASP.NET file to authenticate the user before it writes the file. Here's a thread with some example code on it:

http://www.webmaster-talk.com/showthread.php?t=30030
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 06-06-2005, 07:40 AM
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Thanks, I'm using PHP - so it'd be great if anyone knew a solution using it!

Thanks for the link - ill try and search more thoroughly and turn up something.

Cheers
Stoot
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 06-08-2005, 12:00 PM
Average Talker

Posts: 28
Trades: 0
www.payloadz.com

I have just used this for a a similar purpose. Someone pays (has to be thorugh paypal) and then gets a download link, which is masked! Really handy I tell ya. You store the files on your server and then it either provides a masked link to the address, or you can create a paid for account with them and upload your stuff onto their servers.

I give it 99 outta 100 for ease of use! Hope it helps.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
e-vange is offline
Reply With Quote
View Public Profile
 
Old 06-08-2005, 12:39 PM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Almost gave a you a solution to save uploads untill I re-read it.

Well i suppose you could store the path in your DB and have some reference linking it to the corrrect row in the DB.

They click the link the script gets the path and allows a down load, buety here is you can increment a counter in the DB to show how many downloads its had.

Infact thats probably what I would do.

<a href="{site}?download=1>download</a>

select path from downloads where id=$_get['downloads'];

As for initiating a save box, perhaps throw a header("Location:" . $row['path']) assuming your path contains the file name + extension. This should then open up the save box and allow you to save the file.

Of course I have not tried this (no need myself) but it looks sound and it would work methinks.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf

Last edited by ibbo; 06-08-2005 at 12:49 PM..
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Hidden File Download Path
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46150 seconds with 12 queries