| Author |
Topic Search Topic Options
|
808Rider
Senior Member
Vebro Solutions CEO http://www.vebro.net
Joined: 20 April 2003
Status: Offline
Points: 405
|
Post Options
Thanks(0)
Quote Reply
Topic: Mask And Change A Download Link Posted: 30 April 2004 at 8:19pm |
I was wondering if anyone knows of an ASP Script that will mask a download link and change it everytime a new person clicks to download from that link.
For example:
If I have a file : http://www.mysite.com/files/download.zip and I don't want the people downloading it to see where it comes from it shows the link like this http://www.mysite.com/4683jeke83l or something like that and each time a new person it would change the coding http://www.mysite.com/8t4389jk but the file would still acutally be http://www.mysite.com/files/download.zip
Anyone ever seen anything like this? It doesn't matter if it is just a script by itself or if it is a database driven script.
Thanks in advance! 
|
|
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:09am |
|
I think ASP Upload has an option where you can download a file using the Physical Path on the server HDD, so there can be never a link to this file i.e. it doesn't exist through http://yourdomain/yourfile.ext.
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:23am |
Well... i think there are more than 10 Thousand ASP *Random Link* generators are available.
Make some bulk directories in your site.. for example /98798lkdjf9498/
and in that folder's default.asp, write response.redirect "http://yoursite.com/download.zip"
I think this is the only possible way to do it ?
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:24am |
|
Not sure if this would work, but could the zip be streamed from the ASP file using the objADOStream object.
Simular to how the security_images.asp file works in the forum, but
pointing it to a zip file instead and setting the content type to what
a browser would regonise as a zip file.
May not work, but could be worth a try, if it does work let me know as I would be interested in such a thing.
|
|
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:26am |
ASPupload.com wrote:
Secure File Downloading
With AspUpload, you can let your users download files which are not necessarily residing in a virtual directory, but anywhere on the server's hard drive or even a remote machine.
File downloading is implemented with the method Upload.SendBinary, as follows:
Set Upload = Server.CreateObject("Persits.Upload") Upload.SendBinary "c:\path\file.ext", True, "application/octet-stream", True
|
more at:
http://www.aspupload.com/manual_misc.html
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:28am |
perhaps you can make a directory, like /download/ and put a default.asp in it that has a response.redirect in that which points to your file
further more, you may write a script that randomly renames your /download/ folder into something like 4683jeke83l and store the name that it last time used as an ease for renaming the same directory the next time.
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:30am |
Just had a play around with the security images file in Web Wiz Forums
to convert it to download a zip file by calling the ASP file and it
worked (in Moizlla Firebird anyway)
Here is the code:-
'Set the stream object
Set objADOStream = server.createobject("ADODB.Stream")
'Open the streem oject
objADOStream.Open
'Set the stream object type to binary
objADOStream.Type = 1
'Load in the zip file
objADOStream.LoadFromFile Server.MapPath("uploads/web_wiz_forums_SQL_Server_v7.8.zip")
'Set the right response content type for zip file
Response.ContentType = "application/x-zip-compressed"
'Send zip to browser
Response.BinaryWrite objADOStream.Read
'Flush the response object
Response.Flush
'Clean up
objADOStream.Close
Set objADOStream=Nothing |
Edited by -boRg-
|
|
|
 |
zMaestro
Senior Member
Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2004 at 9:32am |
Is there a problem in using ASPupload???
I think what 808Rider asked for was:
808Rider wrote:
I don't want the people downloading it to see where it comes from |
by the script I refered to he can hide the origin of the file 
|
 |