How to use your own domain with (and any other custodial wallet) on Cloudflare

In this guide, I will go over setting up LN Address redirection to the wallet. These steps also apply to any other custodial wallet too.

5/12/2023 / 3 min read
Post is a great wallet. It's an extremely easy to use, custodial Lightning wallet for the masses. Each telegram account has it's own LN Address, but sometimes you want to use your own domain.

In this guide I will teach you how to setup LN Address redirection with your own domain using Cloudflare's Redirection Rules.


  • A Web Domain that's has Cloudflare setup on it.
  • setup and ready to go.
    • Using is optional. This guide will work with any other custodial wallet that provides you with an LN Address will work too.


Getting your destructured LN Address

Since provides two LN addresses to everybody, you have two options.

  1. Use your Telegram username LN address (Not Recommended)
    1. This isn't recommended because anyone can see your Telegram username with this method and use it to message you. It's the best choice for anonymity from other users.
    2. ex: [email protected]
  2. Use your anonymous LN address (Recommended)
    1. This is recommended because the address is random, nobody can look this up back to your Telegram account.
    2. Can be obtained by running /advanced to the bot, and finding it under "Anonymous Lightning address"
    3. ex: [email protected]

What option you pick doesn't matter to your next step, you're going to want to take the username portion of the address (everything before the @, like an email address) add<username> username goes at the end.

The final url should look something like (depending on the method you chose)

Other platforms

Custodial Wallets that provide you with a Lightning address work similarly to this. Apps like Wallet of Satoshi provide you with a completely random address when you sign up, so a Wallet of Satoshi destructured address would look like:

Setting up Cloudflare Redirects

Assuming that you have Cloudflare hooked up and ready to go, you're going to want to follow a few steps.

  1. Open your site on the panel
  2. On the sidebar, click the dropdown arrow next to Rules
  3. Click "Redirect Rules"
  4. Press the button that says "Create Rule"
  5. Configure your new rule
    1. Give it a name. ex: "lnaddr"
    2. Configure the first condition
      1. Set "Field" to URI Path
      2. Set "Operator" to starts with
      3. Set "Value" to /.well-known/lnurlp/
    3. Configure the "then"
      1. Set "Type" to Static
      2. Set "URL" to your destructured Lightning address from earlier
      3. Set "Status Code" to 307
      4. Check "Preserve query string"
  6. Click Save

All done! Now whenever someone goes to pay your new Lightning address, it should automatically redirect to your custodial wallet. Have fun!

👍 0
👎 0