首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >防御DDOS攻击的最佳方法是什么?

防御DDOS攻击的最佳方法是什么?
EN

Stack Overflow用户
提问于 2015-11-02 08:20:46
回答 2查看 3.6K关注 0票数 0

我住在一个开放的社区里。我在专用服务器上运行游戏,对ddos安全一无所知,我试图阻止对我的游戏服务器的并发攻击,但不知道在哪里制作我的第一部电影,这就像我在一场激烈的国际象棋比赛中被将死,我是否使用其他主机保护?我是不是要建立我自己的保护..这里最好去的地方是什么?我希望保护我的游戏免受http和tcp的攻击。

EN

回答 2

Stack Overflow用户

发布于 2015-11-02 09:16:33

DDOS防护是一个您进行计划、准备就绪、在需要时采取行动并从过去的事件中吸取教训的过程。

整体必须根据您的需求和可能性进行度量。

一些想法:

  • DDOS被坏人用作攻击通常有两个原因:

代码语言:javascript
运行
复制
1. to make your service unavailable
2. to demand money for protection from the perps themselves (maffia technique)

  • ,即使是想要成为罪犯的人也能给你发送的流量,通常足以饱和任何金钱可以购买的传入连接。原因是“僵尸网络”可以租得很便宜,而且它们的组合输出带宽远远超过任何一个人可以持续负担的输入带宽(或者对大多数人来说,甚至是一次性的)。这意味着如果遇到“我的比你的大”的情况:受害者总是输。
  • 你可以提前做一些事情:

代码语言:javascript
运行
复制
1. make sure to be "mobile": Be ready to swiftly change where your service is located (e.g.: make sure to use relative small caching times (time to live) for DNS names, so you can quickly and nimbly switch servers for genuine users each time side-stepping the ongoing attack)
2. have fallback servers ready: if you need to sidestep an attack, it really helps to have servers idling that can take over the real users at any time. CDNs can help here too, but make sure they won't abandon you or charge you excessive amount if you're under attack. This might well mean you want to replicate e.g. (crucial) (parts of) your databases on an ongoing basis as to make sure the alternate servers have the data they need.
3. explore contracts up front: if you need to negotiate, your downtime will be longer. The important parts are to mitigate your costs while under attack for e.g. incoming bandwidth that you cannot control. Similarly that they won't drop you as a customer because you're under attack. For your alternate servers, you might want to minimise costs while not under attack. Etc.
4. prioritise: What services do you really need while under attack ? Have smaller, lighter versions of your service ready to react on overload. For added bonus: make your services aware of "current" load and overload conditions and adapt the service accordingly automatically.
5. low impact services: the less impact a visitor has on your server resources, the harder it is to take you out (or the les effect there is). e.g. Make sure the costly services are for authenticated users only, not for public consumption. (that way you can lock out abusive users more easily)
6. Have communication plans made up: determine what is going to be communicated by whom (to whom) over what medium up front. Don't worry too much about info you give to your attacker: they know already if they're a tiny bit smart. You need to inform your regular customers/users and gain a bit of PR back for a diminished service/quality you're able to provide under the difficult circumstances.  
7. Make sure every decision maker agrees to have a policy to NEVER EVER pay for the attack to stop, as it will only come back worse. If you're a likely target, make this policy public.

票数 6
EN

Stack Overflow用户

发布于 2015-11-02 08:23:12

我看到很多网站使用CloudFlare来保护自己免受DDOS攻击。

https://www.cloudflare.com/case-studies-eurovision/

如果你有兴趣学习如何自己停止这一切,这可能是一个开始你的学习之旅的好地方:https://en.wikipedia.org/wiki/Denial-of-service_attack#Defense_techniques

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33468868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档