# 不需要登录就可以在探索页面看到所有的代码仓库代码？如何关闭？

**URL:** <https://forum.gitea.com/t/topic/9446>\
**Category:** 中文求助(Chinese Only)\
**Created:** [July 14, 2024, 2:39pm UTC](https://forum.gitea.com/t/topic/9446 "2024-07-14T14:39:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartvega](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@smartvega](https://forum.gitea.com/u/smartvega)\
**Post date:** [July 14, 2024, 2:39pm UTC](https://forum.gitea.com/t/topic/9446/1 "2024-07-14T14:39:11Z")

</div>

如题，如何不要公开探索页面下的所有代码？而是在登录了用户之后才能查看自己的代码？  
版本：Gitea 1.21.11  
谢谢~

附图：未登录就可以查看全部代码

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/8/8cda6ee13bed0d5488d2cdba7f3c1e4f8a6e969d.png)

---

<div class="post-metadata">

**Author:** ![smartvega](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@smartvega](https://forum.gitea.com/u/smartvega)\
**Post date:** [July 14, 2024, 2:40pm UTC](https://forum.gitea.com/t/topic/9446/2 "2024-07-14T14:40:42Z")

</div>

问题已经解决，供参考

> **[配置说明 | Gitea Documentation](https://docs.gitea.com/zh-cn/next/administration/config-cheat-sheet)**
>
> 这是针对Gitea配置文件的说明，

将`gitea/gitea/data/gitea/conf`下的`app.ini`文件配置：

- `REQUIRE_SIGNIN_VIEW`: **false** ：仅允许已登录的用户查看探索页面。  
里面的 **false改为true** ，然后重启docker：`docker compose restart`或者`docker-compose restart`

如果直接禁用探索页面则如下：

- `DISABLE_USERS_PAGE`: **false** ：禁用用户探索页面。
