1) Create a directory in the root directory called ".well-known"

2) Create a file called nostr.json

3) Put this in it:

{

"names": {

"BTCGandalf": "ee0e01eb17fc6cb4cd2d9300d2f8945b51056514f156c6bc6d491b74496d161a"

}

}

4) Create a file in the root directory called ".htaccess"

5) Put this line in it:

Header set Access-Control-Allow-Origin "*"

6) In the NIP05 field put this:

BTCGandalf@BTCGandalf.com

Reply to this note

Please Login to reply.

Discussion

Or, since your domain name is the same as the name you want to be referred to as, you could just replace the name with "_" instead. For example in nostr.json:

"_": "ee0e01eb17fc6cb4cd2d9300d2f8945b51056514f156c6bc6d491b74496d161a"

And in NIP05:

_@BTCGandalf.com

Great tutorial by #[5] https://orangepill.dev/nostr-guides/guide-to-verify-nostr-profile-nip05-identifier-with-your-domain/

I ended up having to add this into my htaccess file:

Header always set Access-Control-Allow-Origin "*"

Header always set Access-Control-Allow-Headers "*"

Header always set Access-Control-Allow-Methods "GET"

Good luck Gandalf 🤙

Thanks for sharing this. Also, Gandalf if you are stuck somewhere and need help setting it up, I could help you out.