Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Set bandwidth automatically on addon or subdomain creation?

Discussion in 'General Discussion' started by tyuuu, Nov 4, 2018.

  1. tyuuu

    tyuuu Well-Known Member

    Joined:
    Oct 16, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    i know i can use the following command to limit each domain's download speed for http connection,

    /scripts/setbwlimit --domain=domain.com --limit=xxxx

    but i as i know,it is limit by domain instead of account,

    by the way,even i set it for certain account's main domain,

    when the account add sub,parked or addon domain,

    i think those domains will no be limited at all.


    i want to ask if any way i can add it,

    no matter what domain be added into my server,

    the command will be applied to that domain automatically ?


    thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tyuuu

    tyuuu Well-Known Member

    Joined:
    Oct 16, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    i think it is too difficult for me,
    i wonder if any post/pre feature to run it directly.

    thanks
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @tyuuu

    It should be as simple as running the script you were running before though.
    Code:
    whmapi1 limitbw user=username bwlimit=0
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice