The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bandwidth User

Discussion in 'General Discussion' started by aqua4, Jan 20, 2003.

  1. aqua4

    aqua4 Member

    Joined:
    Jan 18, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,


    If I let someone host on thier username:

    hosting_company.com/~user


    Will it register the bandwidth of the user as Ensim had the nasty problem of not doing it.
     
  2. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    No.

    Seems to be that tracking Data Transfer other than by IP address (which is the easiest way to do it), requires add-on scripts and/or modules.
     
  3. aqua4

    aqua4 Member

    Joined:
    Jan 18, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Such as?


    Thanks
     
  4. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Such as: NetSaint, Big Brother, Big Sister, or programs along those lines. Your favourite Search Engine can give you more information on them as I don't have their URL's handy.
     
  5. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    It does track the bandwidth.... it just tracks it on hosting_company.com rather than the correct domain. The reason for this is because apache is logging the bytes to the domains bytes log which in this case would be hosting_company.com rather than the actual users domain name.
     
  6. GordonH

    GordonH Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Hello
    This means that users can call files via http://ip/~username
    and bypass the bandwidth limits.

    It is a serious problem as people seem to have found out about it.
    We had 4 users rip over 400Gb this month before they were caught.

    Its something that really needs looked at as shared SSL traffic is also not counted.

    I copy access_log to a web viewable folder and do manual trawls.
    I then suspend the user and ask them to stop doing it.

    Over 20+ servers this is a very big job and something which could be automated in WHM.
    It should be possible to parse the access_log and look for ~username and add the bytes to their total.

    Another option is to disable access via ip/~username
    bu this means people cant upload prior to their domain resolving which is not possible for comercial reasons.

    Another way would be to park a subdomain on top like username.servername.com with the other method disabled
    However this would prevent shared SSL except with a wildcard and such an arrangement is not automated in WHM so it would be a lot of work when setting up accounts.

    Nick either has to look at adding the bandwidth from access_log to the users total or change account set up so it parks a subdomain instead of using ~username

    Either way something does need done as the present status is not satisfactory.
    I would advise anyone reading this to check access_log for any high bandwifth activity by username.
    You may be in for a shock.

    Gordon
     
  7. AceWeb

    AceWeb Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Yes, i saw this happen too, and this needs to be addressed.
     
  8. roman

    roman Well-Known Member
    PartnerNOC

    Joined:
    Feb 13, 2002
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    We offer personal home pages with our dialup service. One of our admins made a c program which parses each &~username& and calculates the bandwidth usage from the access_log file.

    Something like this can be modified to parse the cpanel logs and add it to the byte count file of the domain that matches the username.

    This would definatly solve the problem. He made the program within an hour at the time, it shouldn't be difficult for Nick to impliment something like that in cpanel for the share ssl and main server log files. It is much needed..

    ** An IMPORTANT FEATURE NEEDED and has been discussed many times in this forum **
     
Loading...

Share This Page