Skip to content
Jonas Nguyen, home

writing / lessons · part 5· · 2 min read

A robots.txt I never wrote broke Facebook videos

Facebook videos started failing with "Restricted by robots.txt". The file came from a CDN setting, and fixing the setting was not enough.

Collage illustration: “403: robots.txt”

When Clienzo publishes a video to Facebook, it does not upload the file. It gives Facebook a URL, and Facebook downloads the video itself. That keeps the file off Clienzo’s servers and costs nothing in transfer.

In November, Facebook video posts started failing with this:

Unable to fetch media from URL, got status code: 403 Restricted by robots.txt

I had never written a robots.txt for the media domain.

Where it came from

The media files sit on Cloudflare R2, behind a Cloudflare domain. Cloudflare offers a managed robots.txt that tells AI crawlers not to collect content for training. It was on, and it listed about thirty bots.

One of them was meta-externalagent. Meta counts it as a training crawler, and it is also what fetches the video when you post to a Page. A rule written to keep content out of AI training was stopping customers’ own videos from reaching their own Pages.

The firewall was fine: a request with that crawler’s name got a 200. The file alone was the cause, and it was not in any code, so searching the code found nothing.

The setting was not the end

I set training crawlers to Allow. The managed file disappeared, and the media domain now answers 404 for robots.txt, which crawlers read as “allowed”.

Facebook kept refusing anyway. Hours later, it still said the same thing. Meta had cached the old answer for that domain, and nothing on my side could clear it.

So the code changed instead. Facebook videos now get a short-lived signed URL on R2’s own storage host. Meta still downloads the file itself, nothing passes through Clienzo’s servers, and that host has no robots.txt at all. Instagram and Threads still use the normal media URL.

The lesson

A setting meant for one purpose (keep my content out of AI training) can quietly block another (deliver my customers’ content). And a fix on your side does not reach a system that remembered the old answer.

When a network says it cannot fetch a file now, the first thing I check is the robots.txt on the domain it is fetching from, even one I never wrote.

  • The networks I chose not to support (yet)

    Reddit, Substack, WhatsApp Channels, Snapchat — and why. A look at what decides whether a platform is worth integrating when you build alone.

  • Chat apps are channels too

    Why Clienzo posts to Discord, Telegram, Slack and Viber next to the usual social networks — and why Microsoft Teams did not make the list.

  • Small networks, big quirks

    Pinterest pins nobody could see, Dribbble shots that stayed hidden, a shared rate limit on Tumblr. What the smaller integrations taught me.