[GH-ISSUE #245] Prevent sites being indexed by search engines #214

Open
opened 2026-02-26 06:31:33 +03:00 by kerem · 13 comments
Owner

Originally created by @dennisboris on GitHub (Nov 22, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/245

Is your feature request related to a problem? Please describe.
I want to prevent some sites to be indexed by search engines.

Describe the solution you'd like
A checkbox to prevent a site being indexed or the option to add custom headers like: add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

Describe alternatives you've considered
Adding the header by adding a location block in the custom configuration but it requires me to write my own location block configuration. That I don't understand completely I think because I can't load some sites afterwards.

location / {
    proxy_pass http://192.168.2.10:8123;
    add_header  X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
}

Additional context
I hope is is possible to add this feature and I think a lot of people are interested in it.

Originally created by @dennisboris on GitHub (Nov 22, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/245 **Is your feature request related to a problem? Please describe.** I want to prevent some sites to be indexed by search engines. **Describe the solution you'd like** A checkbox to prevent a site being indexed or the option to add custom headers like: `add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";` **Describe alternatives you've considered** Adding the header by adding a location block in the custom configuration but it requires me to write my own location block configuration. That I don't understand completely I think because I can't load some sites afterwards. ``` location / { proxy_pass http://192.168.2.10:8123; add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; } ``` **Additional context** I hope is is possible to add this feature and I think a lot of people are interested in it.
Author
Owner

@dl-lim commented on GitHub (Aug 15, 2020):

Definitely need this. Any workarounds until someone gives an update?

Do we have to write every single proxy_pass for every subdomain?

<!-- gh-comment-id:674415288 --> @dl-lim commented on GitHub (Aug 15, 2020): Definitely need this. Any workarounds until someone gives an update? Do we have to write every single proxy_pass for every subdomain?
Author
Owner

@schmurtzm commented on GitHub (Nov 18, 2020):

Looking for this option too 🙂

<!-- gh-comment-id:729546502 --> @schmurtzm commented on GitHub (Nov 18, 2020): Looking for this option too 🙂
Author
Owner

@tristanXme commented on GitHub (Nov 19, 2020):

Would also love to have this

<!-- gh-comment-id:730573060 --> @tristanXme commented on GitHub (Nov 19, 2020): Would also love to have this
Author
Owner

@Aceriz commented on GitHub (Mar 17, 2021):

would agree it would be great to have this

<!-- gh-comment-id:800728585 --> @Aceriz commented on GitHub (Mar 17, 2021): would agree it would be great to have this
Author
Owner

@HidYn commented on GitHub (May 8, 2021):

I was able to get this working by adding the below to the advanced section of a host you don't want indexed.

location = /robots.txt {
  add_header  Content-Type  text/plain;
  return 200 "User-agent: *\nDisallow: /\n";
}
<!-- gh-comment-id:835428338 --> @HidYn commented on GitHub (May 8, 2021): I was able to get this working by adding the below to the advanced section of a host you don't want indexed. ```nginx location = /robots.txt { add_header Content-Type text/plain; return 200 "User-agent: *\nDisallow: /\n"; } ```
Author
Owner

@LDprg commented on GitHub (Jun 27, 2023):

any updates on this

<!-- gh-comment-id:1609162479 --> @LDprg commented on GitHub (Jun 27, 2023): any updates on this
Author
Owner

@wanderling commented on GitHub (Jul 17, 2023):

Start a bounty. I'll pitch in for this feature.

<!-- gh-comment-id:1637314745 --> @wanderling commented on GitHub (Jul 17, 2023): Start a bounty. I'll pitch in for this feature.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 1, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2029021470 --> @github-actions[bot] commented on GitHub (Apr 1, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@pmharris77 commented on GitHub (Jul 7, 2024):

This would be very useful

<!-- gh-comment-id:2212560591 --> @pmharris77 commented on GitHub (Jul 7, 2024): This would be very useful
Author
Owner

@github-actions[bot] commented on GitHub (May 11, 2025):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2869348947 --> @github-actions[bot] commented on GitHub (May 11, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@LDprg commented on GitHub (May 11, 2025):

still relevant

<!-- gh-comment-id:2869852802 --> @LDprg commented on GitHub (May 11, 2025): still relevant
Author
Owner

@github-actions[bot] commented on GitHub (Jan 3, 2026):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:3706609495 --> @github-actions[bot] commented on GitHub (Jan 3, 2026): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@wanderling commented on GitHub (Jan 3, 2026):

Still a relevant request... Bad bot...

<!-- gh-comment-id:3706612531 --> @wanderling commented on GitHub (Jan 3, 2026): Still a relevant request... Bad bot...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#214
No description provided.