Checking Bandwidth Usage – cPanel Hosting

Checking Bandwidth Usage in cPanel

Your bandwidth usage is the sum total of all traffic from and to your account on the server, including visitors accessing your site, FTP uploads and incoming/outgoing emails

  1. Log into cPanel. If you are unsure about your login details, please contact us.
  2. On the left hand side, you can see a summary of your current usage.checking-bandwidth-usage-1
  3. For details, please go to Logs-> Bandwidth
    checking-bandwidth-usage-2
  4. Scroll down the page where you can see the summary stats for each month. For details, click “Total (all services)” under the relevant month.checking-bandwidth-usage-3

Checking Awstats

  1. In your site’s cPanel go to the Awstats link and click on it.checking-bandwidth-usage-4
  2. At the top of Awstats you can review the “Viewed” vs “Not Viewed” traffic. Not Viewed traffic includes all robots and if unusually high, may indicate a problem with excessive spidering.checking-bandwidth-usage-5
  3. Further down, you can also review the type of files being accessed. Which file types dominate will depend on your site’s coding but any unexpected or unusually high results may indicate an area for optimisation.checking-bandwidth-usage-6

Common Problems

Spiders

Search engines, price comparison sites and other companies index the internet with the use of automated spiders. Most reputable companies will do this spread out over a period of time, but some spiders can be aggressive and move through your site at high speed. This can quickly rack up bandwidth.

To check whether a spider is responsible for unexplained bandwidth usage, please first check the stas as explained above. Then if the unexplained traffic is HTTP, you can use Awstats to further drill down into how the bandwidth is being used. Awstats is accessible from cPanel under “Logs -> Awstats”.

checking-bandwidth-usage-7

Email and Attachments

Incoming and outgoing email is part of the bandwidth. For users with large attachments or frequent email usage, this can lead to high bandwidth even if the website itself receives little traffic. Email usages will show in the stats as “POP3” for incoming, “SMTP” for outgoing and “IMAP” for IMAP services.

IMAP

Every time the server is accessed with a new device for IMAP, the entire mailbox is being synced. For users with large mailboxes, this can lead to high bandwidth usage and will show up in the stats under “IMAP”.

Analysing the Raw Access Log

The raw access log will show you exactly who accesses your site where, but due to the number of entries it can be tricky to distinguish patterns or major bandwidth users.

The easiest method to analyse the log is via MS Excel or a similar spreadsheet program. To use Excel to analyse the log:

  1. From within cPanel download the raw access log, save to your PC/Mac and unzip.

checking-bandwidth-usage-8

  1. Open Excel and from within Excel open the log file. This should bring up the import options. Choose Delimited. Select File Origin as MS-DOS (PC-8)

checking-bandwidth-usage-9

  1. On the next screen choose Delimiters: Space. Ensure that the other Delimiter types are not selected. Click Finish.checking-bandwidth-usage-10
  2. On the Excel page, delete all columns except the first (IP number) and the last (description). Insert a new row right at the top, and enter a name for each column (eg. IP, Description).checking-bandwidth-usage-11
  3. Highlight the entire sheet, click “Insert -> Pivot Table”. Click OK on the “Create Pivot Table” dialogue box. The pivot table will appear in a new work worksheet. In the PivotTable Field List click on IP. Drag the IP field to the empty Values box. This will create an entry called Count of IP.checking-bandwidth-usage-12
  4. This should now give you a quick overview of the key IPs accessing your site – the higher the count, the more often this IP accessed your site. You can then look back at the raw access log to see details for this IP and find out its name (eg. google bot etc).
    checking-bandwidth-usage-13

Blocking IPs

IPs can be blocked from a website via the IP Deny Manager in cPanel. Once you have identified an IP that is causing you problems, enter it into the IP Deny Manager and this IP will be blocked from accessing your site.

checking-bandwidth-usage-14

Bear in mind that bots can operate from an IP range, so you may need to keep an eye on your access logs and block troublesome IPs as they appear.

Previous Post
Registrant Verification Email – Domain Name FAQs
Next Post
Retaining Directory Permissions While Using SCP

Get Online Today!

  

Your perfect domain name is waiting!

Search our huge portfolio for more domain name extensions and pricing below
domain name extensions

Classic Domain Names

.COM | .AU | .CO | .NET | .BIZ | .ME | .EU | .ASIA | .TV | .MOBI | .NAME | .INFO | .ORG | .US | .NL| .FM | .HK | .ES | .CO.NZ | .DE | .CO.UK | .RU | .IM | .PM | .TW | .FR | .CN | .CA | .CH | .VN | .PL | .IL | .JP | .KR |