# Publish txt file

**URL:** https://meta.discourse.org/t/publish-txt-file/389929
**Category:** Support
**Created:** [November 29, 2025, 12:46am UTC](https://meta.discourse.org/t/publish-txt-file/389929 "2025-11-29T00:46:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [November 29, 2025, 12:46am UTC](https://meta.discourse.org/t/publish-txt-file/389929/1 "2025-11-29T00:46:35Z")

</div>

Hey gang.

For Indexnow, they want me to publish a .txt file with a specific value on my site. For example.

[https://domain.com/sjkhdjh333.txt](https://domain.com/sjkhdjh333.txt) Is this possible with Discourse? I see it can be done for Google Adsense with ads.txt, but I don’t see an easy way to do this.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [November 29, 2025, 10:28am UTC](https://meta.discourse.org/t/publish-txt-file/389929/3 "2025-11-29T10:28:00Z")

</div>

Here’s how

> [@How to Place a TXT File in My Discourse Root Directory for WeChat Mini Program Verification?](https://meta.discourse.org/t/how-to-place-a-txt-file-in-my-discourse-root-directory-for-wechat-mini-program-verification/345460/5):
>
> Right! I think that’s exactly what I told someone to do some years ago. I periodically seem to forget that /raw/ path somehow. So you just need to create a public topic with the text in it. You can unlist it so that it doesn’t show up in searches. As long as whatever is following the redirects, it should Just Work.

---

<div class="post-metadata">

### Author: ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)
#### Post date: [November 29, 2025, 4:32pm UTC](https://meta.discourse.org/t/publish-txt-file/389929/4 "2025-11-29T16:32:06Z")

</div>

Uploading the .txt file is easy, but you’ll also need to come up with a way to push/submit new topics to the indexnow api in step 3: [How to add IndexNow to your website | Bing Webmaster Tools](https://www.bing.com/indexnow/getstarted)

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [November 29, 2025, 9:21pm UTC](https://meta.discourse.org/t/publish-txt-file/389929/5 "2025-11-29T21:21:15Z")

</div>

This will be accomplished via Ahrefs, who give you the option to submit once it has crawed your site!

 ![Screenshot 2025-11-29 at 5.20.40 PM](https://global.discourse-cdn.com/meta/original/4X/9/b/b/9bb079ae79bea06630187e349ae615e04f0936d7.png)

---

<div class="post-metadata">

### Author: ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)
#### Post date: [December 11, 2025, 3:15pm UTC](https://meta.discourse.org/t/publish-txt-file/389929/6 "2025-12-11T15:15:13Z")

</div>

Oh, that’s neat. I wasn’t aware. Were you able to upload the txt and make it work?

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [December 13, 2025, 2:39pm UTC](https://meta.discourse.org/t/publish-txt-file/389929/7 "2025-12-13T14:39:27Z")

</div>

Yes, I did manage to get it to work by entering the container, and creating the txt file at the root of the site.
