---
title: "github.com 是什么？阻止它会有什么影响 · Kilobat"
url: "https://kilobat.app/zh-hans/hosts/github-com"
description: "github.com 是 GitHub 用于 HTTPS 和 SSH 上的 Git 以及网站的主要主机。它的作用，以及阻止它会影响什么。"
---

# github.com 是什么？

`github.com` 是 GitHub 的主要主机。GitHub 将它列为其 Actions runner 基本操作所需的主机。

由 GitHub 运营 · 端口：443、80 和 22 TCP · 核查日期：2026 年 11 月 7 日

## 简短回答

GitHub 的主要主机。Git 克隆和推送、网站和登录都会用到它，GitHub 的 runner 和插件工具也将它列为必需。

谨慎阻止

阻止它会让 GitHub 仓库的 Git 操作和网站停止工作。如果你使用 GitHub，请允许它。

匹配

`github.com`

带有 `*.` 的名称涵盖它之下的每个名称：`*.push.apple.com` 匹配 `1-courier.push.apple.com`。

## 它提供什么

GitHub 的 runner 页面在“Needed for essential operations”下列出了 `github.com`，同时列出 `api.github.com`。该主机必须能够在 443 端口上建立出站 HTTPS 连接。

GitHub 的 IP 地址页面说明，为使应用正常运行，你必须为 `github.com` 允许 TCP 端口 22、80 和 443。端口 22 用于 SSH。

Claude Code 的网络页面将 `github.com` 列为通过 HTTPS 或 SSH 克隆 GitHub 托管的插件市场和插件所需的主机。

相关的 GitHub 主机有各自的页面：[`api.github.com`](https://kilobat.app/zh-hans/hosts/api-github-com)、[`codeload.github.com`](https://kilobat.app/zh-hans/hosts/codeload-github-com) 和 [`ghcr.io`](https://kilobat.app/zh-hans/hosts/ghcr-io)。

## 使用它的进程

- [GitHub Desktop](https://kilobat.app/zh-hans/processes/github-desktop): GitHub Desktop 应用。你拉取、推送、克隆和复刻时，它通过 HTTPS 连接 GitHub，并下载自身的更新。

## 阻止它会造成什么问题

谨慎阻止

阻止它会让 GitHub 仓库的 Git 操作和网站停止工作。如果你使用 GitHub，请允许它。

阻止它会造成什么问题

- 通过 HTTPS 或 SSH 的 git clone、fetch 和 push 会失败。
- GitHub 网站和登录无法加载。
- 从 GitHub 克隆的工具（例如插件安装程序）会失败。

使用 Kilobat Pro 和网络过滤器，你可以对所有 App 或某一个 App 阻止某个主机：在“连接”中选择一个连接，然后选择“阻止”。Apple 自己的服务绝不会被 Kilobat 的[防护](https://kilobat.app/zh-hans/docs/blocking#protection)列表阻止。

## 备注

GitHub 表示不建议按 IP 地址放行，因为其地址会不时变化。它通过 `api.github.com/meta` 的 Meta API 发布地址范围。

## 参考资料

- [GitHub 文档：自托管运行器，通信要求](https://docs.github.com/en/actions/reference/runners/self-hosted-runners)
- [GitHub 文档：关于 GitHub 的 IP 地址](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses)
- [Claude Code 文档：网络配置](https://code.claude.com/docs/en/network-config)

核对于 2026 年 11 月 7 日。

## 相关

- [api.github.com](https://kilobat.app/zh-hans/hosts/api-github-com): GitHub REST API 端点。App 和脚本带着令牌和 User-Agent 标头向它发送经过认证的请求。
- [codeload.github.com](https://kilobat.app/zh-hans/hosts/codeload-github-com): GitHub 运行器文档中列出的、用于下载 actions 的 GitHub 主机。
- [ghcr.io](https://kilobat.app/zh-hans/hosts/ghcr-io): GitHub Container registry 的地址。Docker 和类似工具会从中拉取和推送镜像。
