Files
gitea-docs/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.23/administration/search-engines-indexation.md
appleboy dbfa0ba454 docs: add zh-tw folder (#195)
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/195
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2025-04-04 23:28:16 +00:00

31 lines
896 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
date: "2019-12-31T13:55:00+05:00"
slug: "search-engines-indexation"
sidebar_position: 60
aliases:
- /zh-tw/search-engines-indexation
---
# 搜尋引擎索引
預設情況下,你的 Gitea 安裝會被搜尋引擎索引。
如果你不希望你的儲存庫被搜尋引擎看到,請繼續閱讀。
## 使用 robots.txt 阻止搜尋引擎索引
要讓 Gitea 為頂層安裝提供自訂的 `robots.txt`(預設:空的 404請在 [`custom` 資料夾或 `CustomPath`](../administration/customizing-gitea.md) 中建立一個路徑為 `public/robots.txt` 的檔案。
如何配置 `robots.txt` 的範例可以在 [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt) 找到。
```txt
User-agent: *
Disallow: /
```
如果你在子目錄中安裝了 Gitea你需要在頂層目錄中建立或編輯 `robots.txt`
```txt
User-agent: *
Disallow: /gitea/
```