# DDoS 防护

了解边缘计算如何防止 [拒绝服务](https://www.cloudflare.com/learning/ddos/what-is-a-ddos-attack/) 对您的游戏服务器的攻击。

**服务器中断很容易破坏玩家体验，并严重损害您游戏和工作室的声誉。** 除了开发团队失误、提供商中断或本地 ISP 问题之外，恶意的拒绝服务攻击是每个工作室必须牢记的主要威胁之一。

攻击您基础设施的恶意方通常试图通过大量请求淹没您的网络，达到使合法用户的网络数据包无法到达您的服务，或在响应时间和可用性方面受到严重影响的饱和点。

{% hint style="success" %}
Edgegap 超越传统措施并 **将保护带到边缘实例基础设施**.
{% endhint %}

为自动缓解和恢复 DDoS 攻击：

1. 我们会尽早检测所有常见的攻击向量——TCP SYN 泛洪、UDP 泛洪和 HTTP 泛洪。
   1. 指标包括端口连接速率、源连接速率、总连接速率。
2. 我们将该机器声明为遭受 DoS，并 [部署](/zh/learn/bian-pai/deployments.md) 从被针对的站点转移。
3. 为了减少对正在运行游戏的影响，我们在上游进行清洗，并在边缘本地注入路由/防火墙策略，为可疑的入站流量添加空路由重定向。
   1. 由于在边缘对流量进行过滤，服务器端浪费的上游带宽很小。
4. 一旦玩家在被攻击的站点结束比赛并断开连接，我们会回收该站点的 IP 地址，以确保后续比赛不会被同一攻击者针对。
   1. 新的比赛将使用随机分配的新服务器 IP 地址和端口。

{% hint style="info" %}
如果您有特别的问题或疑虑，请随时通过我们的 [社区 Discord](https://discord.gg/NgCnkHbsGp).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgegap.com/zh/docs/ddos-fang-hu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
