Limit Bandwidth on a shared host ?

Discussion in 'Web Design & Coding' started by SPeedY_B, Feb 8, 2005.

  1. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Couldn't think of anywhere to put this, so coding shall suffice.. Does anyone know if it's possible to enforce a 'soft' bandwidth limit on a shared host using some form of .htaccess-like magic ?

    Basically I have a site on a shared host, and wish to impose a bandwidth limit on a sub-domain I have created, and CPanel offers no options to do so.
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    There is currently no way to do this. There are no modules to limit the transfer, and even if there is, none of them accept it from .htaccess to stop people from changing their designated in httpd.conf file amount.
     
  3. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Arse! Thanks for that, guess I'll have to think of something else :D
     
  4. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    thought things like mod_bandwidth and/or mod_throttle would do something like this but they have to be installed on the host first
     
  5. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    mod_trotthle is the only one out of those two that can do it in the first place, but it has to be installed by the host, and then the values are controled by the host putting them in httpd.conf

    Useless to him anyways.
     
  6. vern

    vern Dominus Political User Folding Team

    Messages:
    1,571
    Location:
    Minnesota, USA
    A couple questions that are related ... kinda ... so I'm not going to bother creating a new thread.

    1. Is it possible to limit the speed of data Apache serves up to the web for the entire installation?

    2. Is there a way to configure Apache where you put it into "maintenance" mode and instead of it serving pages as normal, it would serve a plain text page that says something. Sort of like putting it on pause, but notifying the users who might be using it that it is on pause.
     
  7. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    you can limit or Traffic shape things to port 80 using something like ipfw and dummynet, the maintainance mode, I am not sure of, I have never tried and I havent got time to google for it at the mo