Mastodon Now Sends Referer Headers! Hurrah!


Back in 2022, I wrote this rather grumpy post on Mastodon, the federated social media platform.

When you click on this link - https://www.bbc.co.uk/news - your browser says "Hey! BBC! Please can I have your /news page? BTW, I was referred here by shkspr.mobi. THANKS!" This is called the "Referer" and, yes, it is mispelt.

One the one hand, sending the referer is good; it lets the linked-to server know who is linking to it. That allows them to see where traffic is coming from. On the other hand, this could be bad for much the same reason.

If you run a server anarcho_terrorists.biz, you probably don't want the FBI knowing that your members are sharing links to their pages. If you run a small personal server, you may not want anyone knowing that you personally linked to them. If you run a server for a marginalised community, you may not want a hate-site to know your members are linking to you.

But if you're a large-ish, general purpose, non-private site - like Mastodon.social - where's the harm in allowing referer headers?

Anyway, for historic reasons, Mastodon blocked the referer header. This, I believe, was sensible for smaller servers but a miss-step for larger servers. As I pointed out last week:

I'm not the only one to make this point - it has been a popular complaint for some time.

A few days ago, Mastodon changed to allow this to be configurable.

This is excellent news. Website owners will be able to (somewhat) accurately see how much traffic Mastodon sends them. That way they can determine if there is a suitably large audience to engage with on the Fediverse.

It is, of course, slightly more complicated than that!

  • Instance owners can opt-in to allowing Referer headers (it is off by default).
  • The policy means that only the domain name is sent; not the full page.
  • Mastodon is federated and there are thousands of sites. Even if they all opted-in, their statistics will be fragmented.
  • Apps can set their own Referer header - leading to more fragmentation.
  • Even if they do opt-in, users can set their browsers not to send Referer headers.

Nevertheless, I'm delighted with this change. Hopefully it will allow the Fediverse to grow and attract more users.


Share this post on…

  • Mastodon
  • Facebook
  • LinkedIn
  • BlueSky
  • Threads
  • Reddit
  • HackerNews
  • Lobsters
  • WhatsApp
  • Telegram

4 thoughts on “Mastodon Now Sends Referer Headers! Hurrah!”

  1. said on mastodon.social:

    @Edent thanks for sharing. This would be helpful for me, I don't have stats to tell my coworkers Mastodon is worth our limited time.

    Also, I think it just makes for a more interconnected web, if we are aware of each other's visits.

    But I'm also aware of my white European privilege, so curious to hear about the drawbacks here other than "SECURITY!".

    Is there a timeline for this release?

    Reply | Reply to original comment on mastodon.social
  2. HO says:

    OT: I get here from RSS (in Thunderbird), so I guess no referrer? And also nothing like ?rss in the URL, meaning I am also in the Unknown Bucket.

    Reply

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">