Last tended on 22 January, 2026 (first created 22 January, 2026)

, , ,

A rough hack to make your fediverse account discoverable via your e-mail address. I made that in 2022, but switched it off again (it clashed with the ActivityPub plugin in WordPress). Since I got asked now how I did that, I put up this description.

On your e-mail domain name, make a folder well-known (here zylstra.org)
In that folder make a file with the name webfinger (no file extension).
In that file put a text like below.


<?php if ($_GET["resource"]) { $vraag = $_GET["resource"]; } if ($vraag=="acct:blog@zylstra.org") { ?> {"subject":"acct:ton@m.tzyl.eu","aliases":["https://m.tzyl.eu/@ton","https://m.tzyl.eu/users/ton"],"links":[{"rel":"http://webfinger.net/rel/profile-page","type":"text/html","href":"https://m.tzyl.eu/@ton"},{"rel":"self","type":"application/activity+json","href":"https://m.tzyl.eu/users/ton"},{"rel":"http://ostatus.org/schema/1.0/subscribe","template":"https://m.tzyl.eu/authorize_interaction?uri={uri}"}]} <?php } ?>

You see that the code ‘catches’ the request sent to it from some fediverse server, asking about the account name blog@zylstra.org. That is an email address and not a real account. However the script responds to that with some JSON that corresponds to my actual Mastodon account. That way your fediverse account can be discovered by search for an email address you have for someone.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)