Limiting bandwidth for non logged in users

Posted by Dasweb, 03-04-2010, 08:16 PM
Could anyone point me in the right direction to achieve something along these lines? I have a streaming video: I would like user A that is not logged in to stream "slower". I would like user B that is logged in to have access to quicker streaming. Thanks!

Posted by FrankLaszlo, 03-04-2010, 09:24 PM
Fairly simple way of doing this would be to setup mod_throttle on 2 separate subdomains. Lets say www.domain.com, and loggedin.domain.com (just examples). www.domain.com would be setup with a slower rate that loggedin.domain.com. Obviously you would setup some kind of session based login for the second subdomain. EDIT: actually, mod_throttle can be setup on a per-directory basis too. so you could just have a /members/ directory with the limit removed.

Posted by MammothVPS, 03-05-2010, 12:57 AM
I'm having trouble seeing how this would work for video streaming - I mean you can't throttle the customer's download speed to below the video's bitrate, or it will keep stalling. Unless the person is particularly patient, they will just leave your site. Or am I missing something?

Posted by SwordfishHostingLtd, 03-05-2010, 11:38 AM
well what you've asked for is how to throttle the download speed of the vidoes so FrankLaszio has suggested a good solution to the issue. You can setup your video to buffer the entire thing or a large chunk of it before streaming. However yes it will stutter a little but then you asked about slower streaming?

¿Fue útil la respuesta?

 Imprimir éste Artículo

Leer también

Simple Apache problem

Posted by Jinovich, 03-28-2008, 10:26 AMBasically, set up a server it has no Domain only IP, it...

Given a multi-mime email message, how to extract only the HTML?

Posted by Rahil, 01-09-2008, 02:53 AMI am working on a custom mailing list script and I just need...

PHP Running Apps

Posted by Goldfiles, 09-09-2008, 09:31 PMI have a dedicated LAMP server at my house for personal...

Mail/DNS Problem

Posted by efriese, 03-28-2008, 05:01 PMI'm having problems sending email to a particular domain....

Extension issue

Posted by imad77, 04-20-2009, 10:39 AMHi, I run a Perl/CGI script from a Web page to download...