Verify Github profile link on Mastodon

26 Nov 2022

Verify Github profile link on Mastodon

1 minute read

Looking to get a fancy verified checkmark on Mastodon for your Github account?

This post details how I made this work.


Before I get started, huge thanks to Simon Wilson for inspiring me with the original idea.

In his excellent post Simon details how to leverage the static webpage to prove Github domain ownership.

The idea is that proving I own is equivalent to proving ownership of

However, I can’t simply redirect to my Github profile as I already host my my personal website on that domain. (I use a CNAME record to make both domains equivalent).

Consequently, Simon’s approach didn’t work for me. Now what?

Well instead of redirecting the entire domain, I decided to redirect a sub-page. To do this, I:

  1. Added a new page
  2. Included the Mastodon verification tag: <link href="" rel="me">
  3. Have the page redirect to my Github profile
  4. Use the domain on my Mastodon profile

The webpage content looks like this:

<!DOCTYPE html>
    <meta charset="utf-8" />
    <title>Redirecting to /</title>
    <meta http-equiv="refresh" content="0; URL=">
    <link href="" rel="me">
    <link href="" rel="me">
    <link href="" rel="me">
  <body />

And my Mastodon profile, now looks like this:

Mastondon profile

That’s it!

If this was helpful to you, consider buying me a coffee or thanking me on Mastodon or Twitter!

Leave a Comment

Start a conversation about this content on Reddit or Hacker News.