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?

Was this answer helpful?

 Print this Article

Also Read

Please help with php coding problem

Posted by registercheaper, 03-06-2010, 01:43 AMI have the following code for a video site. I need...

Got hacked or got a virus

Posted by azn_romeo_4u, 04-20-2009, 09:30 PMThis code shows up on all my pages with an index.php...

Possible hard drive failure

Posted by howsthat, 01-12-2008, 01:49 PMI am getting this error on my mail from cpanel...

frequent rebooting - what can cause this?

Posted by Premier, 07-14-2007, 12:28 AMI have a server that is monitored with a system that...

PHP/MySQL -> memcached?

Posted by Sammy89, 02-14-2011, 01:41 PMWhat is the best way to improve PHP/MySQL sites? I'm...