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
- Log into cPanel. If you are unsure about your login details, please contact us.
- On the left hand side, you can see a summary of your current usage.
- For details, please go to Logs-> Bandwidth
- Scroll down the page where you can see the summary stats for each month. For details, click “Total (all services)” under the relevant month.
- In your site’s cPanel go to the Awstats link and click on it.
- 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.
- 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.
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”.
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.
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:
- From within cPanel download the raw access log, save to your PC/Mac and unzip.
- 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)
- On the next screen choose Delimiters: Space. Ensure that the other Delimiter types are not selected. Click Finish.
- 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).
- 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.
- 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).
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.
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.