# Robots.txt override in private mode

**URL:** <https://forum.ghost.org/t/robots-txt-override-in-private-mode/61702>\
**Category:** Developer help\
**Created:** [February 3, 2026, 6:17pm UTC](https://forum.ghost.org/t/robots-txt-override-in-private-mode/61702 "2026-02-03T18:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stompo12345](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@stompo12345](https://forum.ghost.org/u/stompo12345)\
**Post date:** [February 3, 2026, 6:17pm UTC](https://forum.ghost.org/t/robots-txt-override-in-private-mode/61702/1 "2026-02-03T18:17:08Z")

</div>

I just wanted to bring this topic up again which was discussed [here](https://forum.ghost.org/t/custom-robots-txt-when-in-headless-or-private-mode/18300).

I am using ghost as a headless cms for blog posts and would like to keep the published site password protected. The only reason I need to override the robots.txt file is Twitter (X) and specifically twitter embed cards, which respect the private request by ghost’s robots.txt and does not display hosted images on their cards.

The suggested solution in the thread was:

> In most cases the best approach is to either use an [external storage adapter](https://ghost.org/docs/config/#storage-adapters), or download all images locally as a part of your front-end build process so the assets are served statically with the rest of the site.

This is a bit of an overkill for what could just be a setting in ghost for setting a custom robots.txt file.

It would be extremely useful if under settings where you make your site private, you’d have a text input for custom robots.txt rules. Twitter (X) is a pretty major marketing channel for publishing and blogs, and I think that alone justifies the need for the solution to come from Ghost.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![stompo12345](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@stompo12345](https://forum.ghost.org/u/stompo12345)\
**Post date:** [February 3, 2026, 6:31pm UTC](https://forum.ghost.org/t/robots-txt-override-in-private-mode/61702/2 "2026-02-03T18:31:35Z")

</div>

![seoghostprivate](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/8/d/8dc0a2ee421b1aee7066b74594a47a3ea1276c4a.png)  
Made a quick mockup of what it could look like

---

<div class="post-metadata">

**Author:** ![stompo12345](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@stompo12345](https://forum.ghost.org/u/stompo12345)\
**Post date:** [February 18, 2026, 11:42am UTC](https://forum.ghost.org/t/robots-txt-override-in-private-mode/61702/3 "2026-02-18T11:42:49Z")

</div>

In addition, the current workaround for setting a custom robots.txt forces custom theming, which is only supported on the publisher plan.
