# HTTP 509 Bandwidth Limit Exceeded

**Code:** `509` · **Category:** HTTP · **Seen on:** REST API

A hosting-control-panel status (cPanel/Apache) meaning the account used up its monthly bandwidth allowance.

## Meaning

509 isn’t an official HTTP code; shared hosts return it when an account exceeds its bandwidth quota. The site stays down until the quota resets, is raised, or the traffic source is dealt with — often hot-linked images, large downloads, or bots.

## Common causes

- Monthly bandwidth quota used up
- Hot-linking of images/videos from other sites
- Large downloads/backups served from the site
- Bot traffic or a crawler loop

## Quick fix

1. Raise the quota or upgrade the plan in the hosting panel
2. Put a CDN (Cloudflare) in front to cache static files
3. Block hot-linking and abusive bots

## Detailed fix by platform

### Apache

1. 

```apache
# .htaccess: block image hot-linking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC]
RewriteRule \.(jpe?g|png|gif|webp)$ - [F,NC]
```


## How to diagnose

1. **Usage** — Bandwidth stats per day in the panel
2. **Top files** — Which URLs transfer the most?
3. **Referrers** — Hot-linking sites?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/http/509-bandwidth-limit-exceeded)
