Limit file transfer speed for certain users

#1
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
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.
 
#5
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...


:?: :?: :?: :?:
 

mistwang

LiteSpeed Staff
#6
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.
 
Top