What DDoS is and who it affects
DDoS is a massive stream of requests from many devices that keeps the server from serving real visitors. It is commonly believed that only large companies are attacked, but that is not so. Small businesses suffer from cheap attacks ordered by competitors or former contractors, and from automated form spam, which in effect creates the same load.
Not every overload is an attack. A site can go down because of a successful ad campaign, a weak hosting plan or a heavy script. The first thing to do is look at the request log and the load. If many requests hit one page with identical parameters and come from unusual countries, it is probably an attack.
Levels of protection
- Network-level filtering
- The hosting provider or CDN cuts off junk traffic before it reaches the server. Check whether this is included in your plan.
- Page caching
- Static pages are served from the cache instead of being assembled each time. This weakens an attack and speeds up the site.
- Request limiting
- No more than a set number of requests per minute from one address, especially for forms and login.
- Form protection
- A hidden honeypot field, a bot check and a limit on submission frequency stop spam.
- Scalability
- The ability to quickly increase server resources for the duration of a peak.
- Monitoring
- A Telegram alert if the site is unavailable or the load has grown.
Attack response plan
Confirm the problem
Check availability from another network, look at the load and the request log.
Contact your hosting provider
They can see the traffic and often turn on filtering right away. You need to know the emergency contact in advance.
Turn on CDN protection
If the site is not connected yet, switch DNS to a service with protection, taking into account the requirements for the .kz zone.
Close off the targets
Temporarily disable heavy pages and search, leaving a light version with a phone number and a form.
Warn your customers
A message on social networks and in the messenger: the site is temporarily unavailable, we take orders by phone.
Preparing in advance
- Backups of the site and database for several days
- Hosting that claims DDoS protection and responds to requests quickly
- Availability monitoring with alerts
- Emergency contacts for the hosting provider and the developer
- A written procedure: who makes decisions and who writes to customers
- A backup channel for receiving requests: messenger, phone