Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to Restrict Unauthorized Downloads

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS 6 bad request (invalid verb)  
Author Message
Prabhat

External


Since: Oct 11, 2005
Posts: 26



(Msg. 1) Posted: Fri Dec 02, 2005 5:55 am
Post subject: How to Restrict Unauthorized Downloads
Archived from groups: microsoft>public>inetserver>asp>general, others (more info?)

Hi All,

I have a website setup which also provide ability to download latest version
of our Software by logging into the webpage. All latest softwares (ONLY ONE
FILE .EXE for each Software) are located in the "/Download" folder of my
website. Customer will login to website and the ASP page decide the software
that this user has purchased and privide ONLY that Hyperlink to download the
latest Version file.

My problem is if somoe body know the path and file name then they directly
put the URL in address bar and will get latest file. How do I restrict that?
Please suggest all possible solutions.

Let me know if my question is not clear.

Thanks in advance
Prabhat

 >> Stay informed about: How to Restrict Unauthorized Downloads 
Back to top
Login to vote
Prabhat

External


Since: Oct 07, 2005
Posts: 9



(Msg. 2) Posted: Fri Dec 02, 2005 10:55 pm
Post subject: Re: How to Restrict Unauthorized Downloads [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>
> Move the files to a folder above your webroot. If authenticated send the
> file via email from the server.
>
> --
> John Blessing
Hi John,

But it is not possible to send those files in email. Because the size is
BIG. So only option will be to allow download but securely. If I will move
to a folder above the root then How do I allow download?

Thanks
Prabhat

 >> Stay informed about: How to Restrict Unauthorized Downloads 
Back to top
Login to vote
Larry Randolf

External


Since: Dec 02, 2005
Posts: 1



(Msg. 3) Posted: Fri Dec 02, 2005 10:55 pm
Post subject: Re: How to Restrict Unauthorized Downloads [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

www.aspprotect.com can stream downloads after a user is logged in.. you
might want to check that out

www.codewanker.com and www.aspin.com are also good places to look for
something like that

"Prabhat" <not_a_email.DeleteThis@hotmail.com> wrote in message
news:edZa3g79FHA.1444@TK2MSFTNGP10.phx.gbl...
> >
>> Move the files to a folder above your webroot. If authenticated send the
>> file via email from the server.
>>
>> --
>> John Blessing
> Hi John,
>
> But it is not possible to send those files in email. Because the size is
> BIG. So only option will be to allow download but securely. If I will move
> to a folder above the root then How do I allow download?
>
> Thanks
> Prabhat
>
 >> Stay informed about: How to Restrict Unauthorized Downloads 
Back to top
Login to vote
user568

External


Since: Aug 16, 2004
Posts: 19



(Msg. 4) Posted: Sat Dec 03, 2005 8:55 am
Post subject: Re: How to Restrict Unauthorized Downloads [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Prabhat wrote on 03 dec 2005 in microsoft.public.inetserver.asp.general:

>>
>> Move the files to a folder above your webroot. If authenticated send
>> the file via email from the server.
>>
>> --
>> John Blessing
> Hi John,
>
> But it is not possible to send those files in email. Because the size
> is BIG. So only option will be to allow download but securely. If I
> will move to a folder above the root then How do I allow download?
>


if session("authorized")<>"yes" then response.end

name="xxxx.pdf"
strFilePath="c:\blah\"&name

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open

objStream.Type = 1
objStream.LoadFromFile strFilePath

Response.Buffer = false
Response.ContentType = "application/pdf"
Response.AddHeader "Content-Type", "application/pdf"
'' or whatever your file is
Response.AddHeader "Content-Disposition","inline;filename="&name

Response.BinaryWrite objStream.Read
Response.Flush
objStream.Close
Set objStream = Nothing


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
 >> Stay informed about: How to Restrict Unauthorized Downloads 
Back to top
Login to vote
Prabhat

External


Since: Oct 07, 2005
Posts: 9



(Msg. 5) Posted: Sun Dec 04, 2005 2:55 pm
Post subject: Re: How to Restrict Unauthorized Downloads [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> if session("authorized")<>"yes" then response.end
>
> name="xxxx.pdf"
> strFilePath="c:\blah\"&name
>
> Set objStream = Server.CreateObject("ADODB.Stream")
> objStream.Open
>
> objStream.Type = 1
> objStream.LoadFromFile strFilePath
>
> Response.Buffer = false
> Response.ContentType = "application/pdf"
> Response.AddHeader "Content-Type", "application/pdf"
> '' or whatever your file is
> Response.AddHeader "Content-Disposition","inline;filename="&name
>
> Response.BinaryWrite objStream.Read
> Response.Flush
> objStream.Close
> Set objStream = Nothing
>
>
> --
> Evertjan.
> The Netherlands.
> (Replace all crosses with dots in my emailaddress)

Hi Evertjan,

Thanks for this suggestion. This is the kind I was looking for. I should cll
this from the URL Click. Thanks again.

Thanks
Prabhat
 >> Stay informed about: How to Restrict Unauthorized Downloads 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]