Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Limit access to some files (i.e. certain amount of users can download at a time)

    I'm in need of a script that would limit the access to a high-bandwidth file. I am on a shared server, and this file will generate enough traffic to crash it, and I don't want this.

    So I need a script to allow a certain amount of users to access this file at a time. I would also need to know how to use this script, since my knowledge of php, is...shall I say, non-existent...

    P.S. These forums are pretty sexy! Glad I joined.

  • #2
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anyone help?

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,627
    Thanks
    0
    Thanked 648 Times in 638 Posts
    Set up a members area and require people to sign up for an account in order to have access to the downloadable files. When they download a file you add the user name, the size of the file and the time into a database. If the total download size for a user within a given timeframe exceeds a set value then you disallow any furthe downloads until enough time has passed that the condition is no longer met. The only way that they have around that is to set up multiple accounts so you would want to tell people that you don't allow that and collect information during account setup to try to block them from doing so.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there any script that can do this for me? I don't really know anything about php


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •