Limit file transfer speed for certain users

Discussion in 'Install/Configuration' started by Robbban, Oct 17, 2005.

  1. Robbban

    Robbban New Member

    Hi

    I would like to limit the download speed for "regular" users to 60kb/s, I know I can do that in the server settings.

    But now the problem, premium users shouldn't have any speed-limit, can I control this with PHP and LiteSpeed pro server?

    Thanks
  2. System

    System New Member

    If you users use certain ip ranges you can set them as trusted ip addresse, so any limits won't apply to them.

    Unfortunatly I am sure they don't, so you will need to setup up a second port or hostname with different download speed settings in place that is for use by premium users only.
  3. mistwang

    mistwang LiteSpeed Staff

    Yes, like System said, you need to create a dedicate vhost for premium users without the throttlint limit.
  4. Robbban

    Robbban New Member

    Yeah, found out and did it :) Works fine!
  5. Robbban

    Robbban New Member

    Hmmm, i'm using the php-function readfile to output a file to the user but he is not restraied to 60kb/s...

    Per Client Out Bandwidth = 61440

    That's set for that domain...


    :?: :?: :?: :?:
  6. mistwang

    mistwang LiteSpeed Staff

    In order to enable throttling, you need to set serverwide configuration to none-zero, then set the limit for the vhost that don't need to be throttled to a large number.

Share This Page