473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to Restrict Unauthorized Downloads

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
Dec 2 '05 #1
5 1582
"Prabhat" <no********@hotmail.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
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

Move the files to a folder above your webroot. If authenticated send the
file via email from the server.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
http://www.outlook-find-replace.com - Find & Replace in Emails, Contacts,
Appointments, Tasks and Notes
http://www.schedule-email.com - Schedule multiple individual
emails/newsletters
Dec 2 '05 #2
>
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
Dec 3 '05 #3
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" <no*********@hotmail.com> wrote in message
news:ed**************@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

Dec 3 '05 #4
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)

Dec 3 '05 #5
> 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
Dec 4 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jayakumar | last post by:
Hi, I am trying to convert a word document to pdf file from java for this, I am using a asp file to convert doc file to pdf. I got it working when I put the url which has file name as the query...
7
by: tweak | last post by:
Can someone give me a short example as how to best use this keyword in your code? This is my understanding: by definition restrict sounds like it is suppose to restrict access to memory...
2
by: ALI-R | last post by:
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server. I am trying to call that webservice from a...
12
by: Me | last post by:
I'm trying to wrap my head around the wording but from what I think the standard says: 1. it's impossible to swap a restrict pointer with another pointer, i.e. int a = 1, b = 2; int *...
21
by: Niu Xiao | last post by:
I see a lot of use in function declarations, such as size_t fread(void* restrict ptr, size_t size, size_t nobj, FILE* restrict fp); but what does the keyword 'restrict' mean? there is no...
0
by: copx | last post by:
Restrict keyword questions How far does the guarantee that an object is not accessed through another pointer go? I mean, all examples I have seen are simple stuff like: int f (int *restrict x,...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
23
by: raashid bhatt | last post by:
what is restrict keyword used for? eg int *restrict p;
2
by: yogarajan | last post by:
hi friends i have one problem. i m using forms authentication for my pages which consist of downloadable links (doc files, pdf files etc.,). the thing is, if i restrict access to the page, it...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.