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.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.