We help IT Professionals succeed at work.

Monitoring who download files

steva
steva asked
on
188 Views
Last Modified: 2010-04-09
I have an html page that describes a product. A link at the end "try for free" will allow the visitor to download a trial setup.exe.  But I want to know who's downloading these trial copies , so my though is to have clicking of "try for free" bring up an order form that the user fills in with address, phone, email, etc.  When that form is submitted, the data is stored in a database and  another page comes up that simply has a button labeled "Download" that's  linked to setup.exe.  

But what's to keep someone from viewing the html source of the download page and seeing exactly where the setup.exe file is located and then giving that address to friends, coworkers, etc., to download setup.exe directly, without me knowing where the files are going?

How do people generally control free downloads from web pages?

Thanks for any thoughts.

steva

Comment
Watch Question

What you can do here is when the link to download is clicked, dont have the URL of the setup.exe in the hyperlink. Instead call a file may be aspx which reads the setup.exe as binary stream and redirects it to the client using response.write with binary headers.
One more option to this can be a very simple stuff, where the download link can take you to another page and this page (aspx) which can redirect the setup.exe file to client user but before that you can check if the HTTP_Referer to this page is from the FORMS page or not. If not then dont do anything and redirect the user to FORMS page first and then once then submit the data you can redirect your setup.exe from that aspx page.

Author

Commented:
Ok. Great!  Let's try the second approach.

The only way I know of to download a file to someone from a web page is to specify the  .exe in a link, and then the viewer's local download software pulls it down when they right-click and select Save As.  How would I "redirect setup.exe to the client" and what would they have to do to initiate the download?

Thanks for your help.

steva
for example the link will point to an aspx file
and the aspx file which we have created will have just one thing
<%
Response.Redirect ("/path/setup.exe")
%>
By doing this your setup.exe path would be kept hidden

Author

Commented:
Ok.  I assume my setup.exe can be 10 MBytes or so without causing  a problem?

And what happens at the user's machine when this stream starts coming down?  They still need to get their local  download software running somehow so they can specify where the file is to be stored.  
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Got it!  Thanks for your help.

steva

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.