• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

How To Limit Downloads?

Question

randomnut    0

Ok heres my problem.

Im making a site, and need to be able to:

1. Create Accounts

2. Limit the amount of files a user can download.

I need a pretty simple step by step.

A FTP is not an option as the website will be on paid for hosting from a commercial host.

Any ideas apprecieated. Many thanks,

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Original_    0

what programming language???

1. Create DB

2. Have protected login area

3. Have download.aspx or download.asp or download.php

> This file adds 1 to a count in the db of files downloaded. The file also either a.) redirects a user to the file being downloaded (less secure) or b.) opens the file and outputs it with content type "application/octet-stream"

> The download.____ file would obviously not display the file to be downloaded if the user is not allowed any more dloads.

Share this post


Link to post
Share on other sites
  • 0
LAD    0

quick question: how would you open the file and output it chunk by chunk (ie 512k each) with content type "application/octet-stream" in PHP? Thx!

Share this post


Link to post
Share on other sites
  • 0
randomnut    0

Hey guys thanks for the reply, they sound good (But I have No idea about any of it Lol).

Would anyone be willing to help me out setting it up, and ill try and sory ya out somethin for ya time ;)

Thanks

MSN randomnut@ntlworld.com

AIM randomnutuk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.