Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Bandwidth Limit Exceeded Due to DDoS Attacks

4 min read
26.08.2025

A Distributed Denial of Service (DDoS) attack can deplete a website's bandwidth by overwhelming it with malicious traffic. This can lead to the "Bandwidth Limit Exceeded" error because the hosting server is unable to handle the surge in requests.

DDoS Bandwidth Limit Exceeded
DDoS-driven bandwidth burn — Cloudflare first, then host conversation.

For closely related bandwidth / DDoS topics, see Bandwidth Limit Exceeded — Causes and Solutions (legitimate-traffic angle), CubeHosting — DDoS Protection Overview, and BlacklistAlert — Understanding and Resolving.

How DDoS Attacks Cause Bandwidth Overload

1. Massive Request Volume

Attackers flood the server with fake requests, consuming bandwidth and making the website inaccessible to legitimate users.

2. Exploitation of Resources

Heavy use of resources like images, videos, or downloads during the attack.

3. Targeting Weak Points

Exploiting specific parts of your website, such as login forms, APIs, or search functionalities, to amplify traffic and bandwidth usage.

Steps to Identify a DDoS Attack

  1. Monitor Traffic Spikes:
    • Check for sudden and unusual increases in traffic using tools like:
    • Google Analytics.
    • Hosting control panel analytics.
    • Server logs.
  2. Inspect Access Logs:
    • Look for repetitive requests from specific IP addresses or a high number of requests in a short period.
    • Example (Linux command):
    tail -n 1000 /var/log/apache2/access.log | awk '{print $1}' | sort | uniq -c | sort -nr | head -10
  3. Unusual Geographic Traffic:
    • If most traffic originates from unfamiliar locations, it could be a sign of a DDoS attack.
  4. High Resource Usage:
    • Monitor CPU, memory, and bandwidth usage for unusual spikes.
Linux VDS
High performance for your projects
  • Root access and flexible setup
  • Control panel
  • NVMe disks
  • DDR5
Linux VDS

Immediate Actions During a DDoS Attack

Enable "Under Attack" Mode (CDN)

Use services like Cloudflare or Sucuri to activate "Under Attack" mode, which displays a CAPTCHA to filter malicious traffic.

Block Malicious IPs

Manually block suspicious IP addresses in your hosting control panel or via .htaccess or firewall.

Example .htaccess block:

<Limit GET POST>

Order Allow,Deny

Allow from all

Deny from 192.168.1.1

</Limit>

Increase Bandwidth Temporarily

Contact your hosting provider to increase the bandwidth allocation temporarily.

Use a Firewall

Activate a Web Application Firewall (WAF) like Cloudflare, Sucuri, or a hosting-integrated firewall.

Rate Limiting

Limit the number of requests per second per IP to prevent abuse.

Disable Resource-Intensive Features

Temporarily disable features like search, file downloads, or image galleries.

Long-Term Solutions to Prevent DDoS and Bandwidth Overload

1. Implement a Content Delivery Network (CDN)

CDNs distribute traffic across multiple servers globally, reducing the load on your origin server.

Popular options: Cloudflare (Free and Paid Plans), Akamai, AWS CloudFront.

2. Enable a Web Application Firewall (WAF)

A WAF inspects incoming traffic and blocks malicious requests before they reach your server.

Popular WAF services: Cloudflare WAF, Sucuri Firewall, Imperva.

3. Limit Bandwidth Usage by Visitors

Implement hotlink protection to stop other websites from using your resources:

  • In cPanel, navigate to Hotlink Protection under Security and enable it.

Compress files like images, CSS, and JavaScript to reduce bandwidth usage:

  • Use tools like TinyPNG or Gzip compression.

4. Set Rate Limiting Rules

Use rate-limiting features to block IPs sending too many requests.

In Cloudflare: Set rules for specific endpoints (e.g., login pages or APIs).

Example for Nginx:

limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;

server {

    location / {

        limit_req zone=one burst=20;

    }

}

5. Upgrade Your Hosting Plan

Choose a plan with higher bandwidth limits or move to a scalable cloud hosting provider like EraHost.

6. Enable DNS-Based DDoS Protection

DNS-based protection prevents large-scale DDoS attacks at the DNS level.

Providers: Cloudflare, Google Cloud DNS.

Monitor and Recover from an Attack

  1. Analyze Logs Post-Attack:
    • Identify IPs, endpoints, and patterns used in the attack.
  2. Reinforce Security:
    • Use tools like Fail2Ban to ban repeat offenders automatically.
  3. Notify Your Hosting Provider:
    • Many hosting providers offer DDoS protection services or can suggest upgrades.
  4. Restore Services:
    • Re-enable disabled features gradually and test resource performance.

DDoS attacks can quickly exhaust your bandwidth and cause the "Bandwidth Limit Exceeded" error. By implementing immediate response actions and long-term preventive measures such as CDN, WAF, rate limiting, and hosting upgrades, you can protect your website from these attacks and ensure continuous availability.

Frequently asked questions
Source distribution: organic spike has thousands of unique IPs from expected geographies; DDoS often has high-volume from few IPs or many IPs from unusual geographies. URL distribution: organic hits many URLs (homepage, popular articles); DDoS hammers one or few endpoints. User-Agent: organic is diverse; DDoS often has uniform or absent User-Agents. Cloudflare/AWStats show these dimensions.
Yes for most volumetric attacks. Cloudflare's network absorbs the attack at edge; your origin sees only legitimate traffic that passes Cloudflare's filters. Enable "Under Attack Mode" for active mitigation. For attacks exceeding Cloudflare's free-tier filters, paid Pro/Business adds layer-7 WAF rules. Free tier handles small/medium attacks; large need paid.
Talk to your host. Reputable providers credit bandwidth used during DDoS incidents — show them log evidence (timestamps of unusual traffic, attacker IP ranges, request patterns). Many will reset the meter or extend the cap. Budget providers may refuse — switch hosts if it's recurring. For-real important sites need a host with DDoS-aware billing.
Tiered defense: (1) Cloudflare (or CloudFront, Fastly) in front — absorbs volumetric. (2) Rate limiting at web server (nginx `limit_req_zone`, Apache mod_evasive). (3) WAF (Cloudflare WAF, ModSecurity) — filters layer 7. (4) fail2ban for repeated offenders. (5) Monitoring with alerts on abnormal bandwidth so you find out in minutes, not days. The first costs $0; full stack ~$20/month for small sites.
Related articles
Bandwidth Limit Exceeded: Causes and Solutions
Explanation: Email Rate Limited Due to High Volume of Unsolicited Mail
421-4.7.0 "Unusual Rate of Unsolicited Mail" Error