Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mask And Change A Download Link
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mask And Change A Download Link

 Post Reply Post Reply Page  12>
Author
808Rider View Drop Down
Senior Member
Senior Member

Vebro Solutions CEO http://www.vebro.net

Joined: 20 April 2003
Status: Offline
Points: 405
Post Options Post Options   Thanks (0) Thanks(0)   Quote 808Rider Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post 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 ?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2004 at 9:26am

Originally posted by ASPupload.com 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

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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-
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2004 at 9:32am

Is there a problem in using ASPupload???

I think what 808Rider asked for was:

Originally posted by 808Rider 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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.