# 需要编辑 robots.txt 文件 - 它在哪里？

**URL:** <https://meta.discourse.org/t/needing-to-edit-robots-txt-file-where-is-it/93879>\
**Category:** Support\
**Created:** [2018年八月3日 21:11 UTC](https://meta.discourse.org/t/needing-to-edit-robots-txt-file-where-is-it/93879 "2018-08-03T21:11:37Z")\
**Posts on this page:** 1\
**Showing post:** 40

<div class="post-metadata">

**Author:** ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)\
**Post date:** [2019年七月11日 20:44 UTC](https://meta.discourse.org/t/needing-to-edit-robots-txt-file-where-is-it/93879/40 "2019-07-11T20:44:41Z")

</div>

我已为此创建了 PR：

> <https://github.com/discourse/discourse/pull/7884>
>
> This allows admins to customize/override the content of the robots.txt
> file at …/admin/customize/robots. That page is not linked to anywhere in
> the UI -- admins have to manually type the URL to access that page.
> 
> Meta topic: https://meta.discourse.org/t/needing-to-edit-robots-txt-file-where-is-it/93879?u=osama
> 
> Screenshots:
> 
> !\[image\](https://user-images.githubusercontent.com/17474474/61083151-b5174800-a433-11e9-890e-283221046b2b.png)
> 
> !\[image\](https://user-images.githubusercontent.com/17474474/61083312-16d7b200-a434-11e9-9cae-dc3a9982c049.png)
> 
> @eviltrout does it make sense to prepend a comment to robots.txt that says something along the lines of "this robots.txt file has been customized at /admin/customize/robots" \*\*if\*\* the file is customized? It might help with figuring out why certain things are in the file and how to remove/change them?

截图：

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/8/28b61f808e6f4fa28f34296b1bfb7cc4bf1054cc.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/7/f778129e5b56b76c8930c6cc38879c436cd3a33b.png)

---

_[View the full topic](https://meta.discourse.org/t/needing-to-edit-robots-txt-file-where-is-it/93879)._
