Search code examples
htmlmysql.htaccessddos

Handle DDos with htaccess?


at first, I am not really sure if I think correctly about DDos. When my website gets DDosed, the hacker overload it with requests. Mostly MySQL for example has to fight against it. The site starts to lag (?) and then crashes (?). But thats not my question.

My question is: When I see that I get ddosed, could I simply redirect all pages to a HTML page (like sorrywegetddosed.html) where I tell my users that we will be back soon? :D Or does the DDos also attack the CPU (?) which would still cause lags?

Sorry and thank you for your answers!


Solution

  • DDOS attacks are launched from multiple devices. But,DOS attack is on a single internet connections which exhausts the server resources like RAM or CPU. To stop an attack route the server to null or to 127.0.0.1 so all the hits will return back. So if you are having DDoS attack your resources are not exhausted as in DoS attack.