Help limiting bandwidth!

Hello,

Is there anyway I can automatically control my users through scripts or something else!.


so If I can change the priority and speeds of users that are downloading and uploading large files.

Say after 200 megs of downloads the priority gets dropped, and the speed is slowed, 500 megs its priority is dropped again and speed slowed even more. same for uploads.

Is there any example I can start to work on ?


Ghassan