It started with an email from my watchdog: Cloudinary resource consumption on the account behind my Footprints page looked abnormal. That account had sat comfortably inside the free plan since I built the globe in 2025 and wrote about keeping its bandwidth low. When I opened the dashboard, it said I had used 26.33 of 25 credits, and Cloudinary was asking me to upgrade.

This post is the retrospective: what the reports showed, what I could and couldn't work out about where the traffic came from, and why I answered by moving the photos to Cloudflare R2 instead of buying more credits. I've tried to keep what I observed separate from what I infer, because the honest answer to "who did this?" is still "I don't know".

What the dashboard showed#

The environment is called da0nag1rl. It holds the album photos for the Footprints globe: around 1,400 travel photographs, most taken on a phone and uploaded at full resolution.

  • 26.33 / 25credits used (105.32%)
  • 22.47 GBbandwidth delivered
  • 33.54Kimage requests
  • 2.35 GBtotal storage
Cloudinary dashboard for the da0nag1rl environment on the Free plan, showing credit usage for the last 30 days of 26.33 out of 25, 105.32 percent used, with a warning that the account has gone over its limit.
The Cloudinary dashboard after the alert: 26.33 of 25 credits used over the last 30 days.

On the free plan, everything is paid for in credits. Cloudinary's documentation defines one credit as 1,000 transformations, 1 GB of managed storage, or 1 GB of image bandwidth, and the free plan gets 25 a month. Bandwidth and transformations are counted over a rolling 30-day window rather than resetting on the first of the month.

Put the numbers side by side and the cause is obvious. Storage was only 2.35 GB, and there had been just 164 transformations. Bandwidth, at roughly 22 GB, accounted for about 22 of the 26.33 credits on its own. The library hadn't grown. Something had downloaded it, repeatedly.

Cloudinary Usage Overview for the last 30 days: 33.532 thousand image impressions, 3.569 thousand images and videos, 164 transformations, 21.94 GB bandwidth and 2.35 GB storage. The daily impressions chart is flat near zero until a small bump around November 18 and a sharp spike to about 13,500 on November 24, then about 7,000, 8,400 and 3,400 on the following days.
The Usage Report: near-zero daily impressions for weeks, then a spike on 24 November. This view reports 21.94 GB of bandwidth; the Delivery Report reports 22.47 GB. I haven't reconciled the small difference, and it doesn't change the conclusion.

The shape of the spike#

A total tells you something went wrong. The shape of the traffic tells you what kind of wrong. Daily image requests had been negligible for weeks. A personal travel globe with a few visitors a day doesn't move the needle. Then, on 24 November, about 13,500 requests arrived in a single day.

Daily image requests, 29 October to 27 November 2026

Estimated values, read off Cloudinary's usage chart. Only the 30-day total (33.53K) is an exact reported figure. The estimates add up to about 33.7K.

Show the estimated values
DayRequests (est.)Bandwidth (est.)
29 Oct to 17 Nov≈ 0≈ 0
18 Nov≈ 1.2K≈ 0.9 GB
22 Nov≈ 0.2K< 0.2 GB
24 Nov≈ 13.5K≈ 9.2 GB
25 Nov≈ 7.0K≈ 4.5 GB
26 Nov≈ 8.4K≈ 5.4 GB
27 Nov≈ 3.4K≈ 2.3 GB
Requests went from essentially zero to about 13,500 in one day. Hover over a column for its estimate. Bandwidth estimates come from the Delivery Report chart below.

The Delivery Report shows the same curve in bytes. Requests and bandwidth track each other almost perfectly, which is what you'd expect if every request is for a file of roughly the same, fairly large size. Dividing the reported totals gives an average of about 670 KB per request. That is far too large to be thumbnails.

Cloudinary Delivery Report, Bandwidth and Requests: 33.54 thousand total requests and 22.47 GB total bandwidth, both marked significantly more than usual. Video shows 0 requests and 0 bytes; images show 33.54 thousand requests and 22.47 GB. The chart's requests and bandwidth lines overlap closely, with a small rise around November 18 and a peak near 9.3 GB on November 24.
The Delivery Report: 33.54K requests and 22.47 GB, all of it images, both flagged "significantly more than usual". The requests line and the bandwidth line move together.

There was also a smaller bump around 18 November, about 1,200 requests. I can't explain it and I can't link it to the main spike, so I've just noted it.

Where the bytes went#

Cloudinary's delivery breakdowns filled in the rest of the picture:

  • 98.69% of bandwidth was untransformed JPEGs, meaning the original uploaded files, not the optimized 300px thumbnails the globe actually shows.
  • Virtually 100% of bandwidth had no referral domain. When the Footprints page loads an image, the browser normally sends my site as the referrer. These requests didn't come with one.
  • Virtually all bandwidth was attributed to a client that called itself github-image-migrator in its user agent string.
  • The five highest-bandwidth photos were all from my Louvre Museum album, the largest on the site at 521 photos. But consumption was spread across many photos rather than piled onto one.
  • About 48.59% of bandwidth went to the United States and 26.78% to Germany.

What the 22.47 GB was spent on

Share of delivered bandwidth, from Cloudinary's delivery breakdown.

  • Untransformed original JPEGs: 98.69%
  • Everything else, including thumbnails: 1.31%

To see why that split matters, compare the sizes of one photo. Below is a single Times Square photograph, measured from the renditions the new pipeline generates: the grid thumbnail, the size used for normal viewing, and the untouched original.

One photo, three sizes

Measured file sizes for one Times Square photo in the new setup. Other photos vary; this one is an illustration, not an average.

  • 300px thumbnail (WebP) 29 KB
  • 1200px viewing image (WebP) 310 KB
  • Original JPEG 1,865 KB
The original is about 64 times the size of the thumbnail. A client that skips the thumbnails and asks for originals pays (or makes me pay) for that difference on every request.

As rough arithmetic: if the same 33.54K requests had been for thumbnails around 30 KB each, they would have used about 1 GB, comfortably inside the free plan. The request count wasn't the problem. The problem was that the requests went for the most expensive version of every photo.

Cloudinary Delivery Report, Top Countries by bandwidth: a world map highlighting the United States, Canada, Germany and a neighbouring country. The table lists United States, 10.92 GB, 48.59 percent, and Germany, 6.02 GB, 26.78 percent.
Top countries by bandwidth: the United States (10.92 GB, 48.59%) and Germany (6.02 GB, 26.78%) account for about three quarters of the total.

What I can and can't conclude#

It's tempting to turn a usage spike into an attack story. The evidence doesn't support one, so here is how I've separated the evidence:

ObservedWhat I infer from itStill unknown
Traffic went from near zero to about 13.5K requests a day, almost all of it original files, with no referrer.The pattern is strongly consistent with automated bulk downloading or scraping, not with people browsing the globe.Whether it was one client or several, and whether it was deliberate or a misconfigured tool.
The client called itself github-image-migrator.Nothing reliable. A user agent is just a string the client chooses to send.Who ran it. Searching GitHub repositories didn't turn up that user agent, and this site's GitHub Actions history doesn't explain the spike. I have no evidence it came from GitHub.
Most bandwidth was attributed to the United States and Germany.That could reflect where the client ran, such as cloud regions, rather than where any person was.The actual operator and their location.
Requests were spread across many photos, with the Louvre album at the top.Something was walking through the albums rather than repeatedly fetching one image.Why. The motivation is unconfirmed.

This was also not a denial-of-service attack in any meaningful sense. On the peak day, 13,500 requests works out to about one every six seconds on average. That isn't enough to take anything down. It was enough to use up a free plan, because each request was expensive. I'm not calling this a cyberattack. The reports show heavy automated consumption from a client I can't identify, and that is all they show.

One more thing to rule out: the migration tooling I describe below. My backup script sends its own explicit user agent (aboutsharma-authorized-backup/1.0), and I wrote it after the spike, on 29 November. The string github-image-migrator doesn't appear anywhere in this site's repository or its history.

The real weakness: my delivery design#

Whoever the client was, it didn't need to break anything. It only had to read files I was already publishing.

The manifests were a public index of originals#

Each Footprints album is a JSON file under /data/albums/, and the page fetches it when you open an album. Every entry listed the photo's original-resolution Cloudinary URL, and the page derived thumbnails from that URL on the fly. That is a convenient design. It also means anyone who opens those JSON files gets a complete, machine-readable list of every original on the account, with no need to touch the page at all.

The HD limit only existed in the browser#

The site did have an "HD" limit: the viewer counted full-resolution loads in sessionStorage and stopped after 20 per session. That works as a courtesy for people using the page. It does nothing against a client that never runs the page's JavaScript. Clearing storage resets the count, and a script that requests the URLs directly never sees it. Anything enforced on the client is a user-experience feature, not an access control.

This was not a Cloudinary vulnerability#

None of this points to a flaw in Cloudinary. It delivered exactly what my manifests asked it to deliver to anyone who requested it, which is what a public delivery URL is for. Cloudinary does offer stronger controls: strict transformations, which block unapproved derived versions; private and authenticated delivery types; and signed URLs. I wasn't using them for the originals, and I had published every original's URL in a public file. Cloudinary's own documentation also notes a limit of signed URLs: once a URL is exposed on a website, anyone who has it can use it.

The economics of metered bandwidth#

The deeper lesson is about pricing. On a service billed by bandwidth, the most aggressive client sets your bill, not your typical visitor. Storage cost me 2.35 credits. Delivery to one unidentified client cost me roughly 22. Cloudinary treats plan limits as soft: it sends notifications, asks you to upgrade, and its documentation says an account that stays over its limits after repeated notifications can eventually be disabled automatically. Because the window rolls over 30 days, a one-off spike eventually ages out on its own. Hoping it doesn't happen again is not a plan, though.

Why I didn't just upgrade#

Upgrading would have cleared the warning, but it would have paid for the symptom. The same manifests would still have listed every original, and every byte anyone downloaded would still have been metered. A bigger plan only raises the ceiling before the next email arrives.

What I actually needed was a delivery path where:

  1. delivering bytes is not the thing I pay for;
  2. the files the page needs (thumbnails and viewing-size images) are cheap to serve and heavily cached; and
  3. originals are no longer listed in public JSON and served by default, but go through a path I control.

Cloudflare R2 fits the first point directly: R2 doesn't charge for egress, and its free tier covers 10 GB-month of Standard storage, 1 million Class A operations and 10 million Class B operations a month. This site already runs behind Cloudflare (I've written before about routing traffic with a Worker), so the CDN and Workers fit in with what I already had.

It isn't free of trade-offs. R2 still meters operations, Workers have request limits on the free plan, and I give up Cloudinary's on-the-fly transformations and automatic format selection. To replace those, I now generate the image sizes I need once, locally, ahead of time.

The new architecture#

Photo delivery, before and after

Gold edges mark the weak points, green marks private storage, and the dashed box is planned, not yet in place.

Before: Cloudinary

Any HTTP clientA browser on the Footprints page, or a script that never loads it
reads
Public album JSONLists every photo's original-resolution URL
requests thumbnails or originals directly
Cloudinary deliveryTransforms thumbnails on the fly and serves originals to anyone. Every GB counts against plan credits.
the only HD limit
20 HD loads per browser sessionCounted in the browser, so a direct request bypasses it

After: Cloudflare R2, being rolled out

Any HTTP clientSame visitors, same scripts
reads
Provider-independent manifestsSeparate thumb, table, view and full URLs for each photo
two delivery paths

Everyday viewing

media.aboutsharma.comCloudflare CDN cache, with one-year immutable cache headers
cache miss
Public R2 bucketOnly WebP renditions generated locally: 120px, 300px and 1200px

Full resolution (HD)

hd.aboutsharma.com WorkerGET only, site Origin required, strict key format, about 20 requests per minute per IP, counted per Cloudflare location
allowed requests only
Private R2 bucketOriginals, with no public access
planned, in front of both hostnames
WAF and bot-mitigation rulesCustom rules, Bot Fight Mode and an edge rate-limiting rule if abuse continues
Before, one public file listed every original and Cloudinary served them to anyone. After, everyday viewing uses cached, pre-sized WebP files, and originals live in a private bucket behind a rate-limited Worker.

The pieces, in order of importance:

  • Originals are private. Full-resolution files live in a separate R2 bucket that has no public URL. The only way to reach them is through the HD Worker.
  • Everyday viewing never touches originals. The grid, the table view and the photo viewer use pre-generated WebP renditions from a public bucket on a custom domain. Cloudflare's documentation is clear that caching, WAF rules and bot controls only work on a custom domain, not on the r2.dev development URL, so that's how it's set up. I checked the response headers: repeat requests come back as cf-cache-status: HIT.
  • HD goes through a Worker that enforces limits on the server. It only accepts GET requests, only for keys that match the exact format of an original, and only when the request carries my site's Origin. Each client IP is limited to 20 HD requests per 60 seconds. Without the site's Origin header, the Worker returns 403.
  • The manifests don't depend on a provider. Each photo now has explicit thumb, table, view and full URLs. The page no longer builds URLs from a provider's syntax, so moving providers again later only means changing data, not code.

I want to be precise about what two of those controls really do:

  • The Origin check is a filter, not authentication. Browsers set the Origin header, but any non-browser client can send whatever value it likes. The check stops casual hotlinking and naive scripts. It does not stop someone who copies the header.
  • The rate limit is approximate and per location. Cloudflare's documentation says the Workers rate-limiting binding counts separately in each Cloudflare location and is eventually consistent, so a burst can briefly go over the limit. A client spread across many IPs or locations gets a separate allowance for each one. For a strict global limit, Cloudflare recommends building one on Durable Objects.

Migrating 1,423 photos without making things worse#

A migration that downloads every original is itself a bulk download. I didn't want the fix to look like the incident, or to lose a single photo along the way. The pipeline is one script with three modes, and every mode can be stopped and resumed:

  1. Plan. It reads every album manifest and the globe's location data, collects the original URLs, and removes duplicates so a photo that appears in two places is fetched once. That gives 1,423 unique photographs. It also lists anything it can't handle; for example, two short legacy videos are explicitly excluded and reported.
  2. Back up. It downloads originals one at a time with a short pause between them and an identifying user agent. It stops on the first provider error instead of retrying blindly. Each file is checked as a valid image, given a SHA-256 checksum, and only then moved into place. On a re-run, any file whose checksum already matches is skipped. If a file exists but can't be verified, the script stops and asks a human to look, instead of overwriting it. There is also a size cap per file.
  3. Stage. It generates the WebP renditions locally and uploads originals to the private bucket and renditions to the public one. After each upload it reads the object back from R2 and compares checksums. It refuses to overwrite an existing object whose checksum doesn't match. Finally, it writes updated manifests to a staging folder outside the repository. Nothing on the site changes until I've reviewed those manifests and committed them myself.

The backup ran on the same server that hosts this site, so it also has a disk-space guard: before each download it checks free space and stops if fewer than 5 GiB would be left for production. The script never deletes anything, either at the source or at the destination.

The backup also had a cost: one more full read of the originals from Cloudinary, at most about the size of the stored library. I counted it as the price of leaving. Unlike the spike, it was one deliberate, identifiable and sequential pass.

Where things stand#

As of writing (29 November 2026):

  • Done: all 1,423 unique originals are backed up locally and checksummed. The HD Worker is deployed: it rejects requests without the site's Origin and serves originals for requests with it. The album manifests on the live site have been switched to the new hostnames.
  • In progress: uploading and verifying renditions for the remaining albums. Some albums are already served from R2 through the CDN; others are still being processed.
  • Not yet started: the planned WAF and bot rules, the two legacy videos, and a few older photos that live in a separate Cloudinary account that wasn't involved in this incident.
  • Deliberately not done: deleting anything from Cloudinary. The old public URLs can still be reached, so anyone who already collected them could keep using them. Removing them comes after production delivery is verified, the backup has a second independent copy, and I've confirmed nothing else references them.

What the new design doesn't solve#

It would be easy to oversell this. The new setup changes the economics and closes the most obvious gap. It does not make scraping impossible.

  • Public renditions are still public. Anyone can still download every thumbnail and every 1200px viewing image. That costs me far less now, but it is still possible.
  • The HD path can be worked around by a determined client. The Origin header can be spoofed, and rate limits count per IP and per location. A client with many IPs gets many allowances.
  • Free-tier controls are limited. Cloudflare's free plan includes custom WAF rules, a single rate-limiting rule and Bot Fight Mode, which is a simple on/off switch that can't be tuned. Bot scoring requires paid tiers.
  • "Free egress" doesn't mean "free". R2 operations and Worker invocations are still metered and still have limits.

If abuse continues, there are stronger next steps: short-lived signed URLs for originals, a challenge such as Cloudflare Turnstile before HD loads, a strict global limiter on Durable Objects, and spending alerts on the Cloudflare side to match the watchdog that caught this.

Lessons#

  • Monitoring paid for itself. I caught this from an email, not from a disabled account or a broken album.
  • Look at the shape of the traffic, not just the total. "Over the limit" was the alert. "Originals, no referrer, one user agent, starting on one day" was the diagnosis.
  • Any URL in a public file is effectively a public API. If a manifest lists originals, assume something will eventually download all of them.
  • Client-side limits are a courtesy, not a control. Real limits have to be enforced on a server or at the edge.
  • With metered bandwidth, your heaviest client sets the bill. Design so the expensive path is the one you control.
  • Keep evidence and theories apart. "Strongly consistent with automated downloading" is what I can defend. A name in a user agent string is not attribution.

The Footprints globe started as a free-tier experiment, and it still is one. It's just built now around the assumption that someone will read every file I publish. If you've dealt with something similar, or have a better approach for the HD path, I'd like to hear about it. You can find me through the resume page.

Sources and further reading#