Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Protecting Files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Protecting Files

 Post Reply Post Reply
Author
philcom2000 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 February 2002
Location: England
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote philcom2000 Quote  Post ReplyReply Direct Link To This Post Topic: Protecting Files
    Posted: 18 July 2004 at 1:58pm
I am designing a download manager and i want to protect the location of my download files. The main idea is to stop people downloading using direct links also leaving the option open to restrict access to files so they can be sold then the user can be pointed to the download location after purchase. Any idea's tips or links would be a great help, i don't need and exact answer just a point in the right direction.
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: 18 July 2004 at 2:54pm
For this site to do what you ask I use ADO.Stream, part of ADO to stream the file to the browser from a hidden location.

There are lots tutorials on the web for this if you search on google.
Back to Top
philcom2000 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 February 2002
Location: England
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote philcom2000 Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2004 at 4:21pm

Found a great tutorial on ADO.Stream just what i was looking for thanks for the tip.

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: 19 July 2004 at 3:32am
One thing to look out for though is that allot of people where complaining that the zip was corrupted becuase for some reason the stream was being cut short.

I sorted the problem by getting the ADO.Stream in smaller chuncks using the following code:-

'Send zip to browser
Do Until objADOStream.EOS
   
   'Make sure browser is connected
   If Response.IsClientConnected Then
                     
       'Write the ado stream in small scable chunks
       Response.BinaryWrite objADOStream.Read(100000)

       'If buffer is done empty
       If Response.Buffer Then
          Response.Flush
       End If
    Else
       Exit Do
    End If
Loop

Back to Top
 Post Reply Post Reply

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.