X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

DDoS Attack Prevention: What to Do Before and During an Attack

HomepageArticlesSecurityDDoS Attack Prevention: What to Do ...

DDoS attack prevention is not complete simply because a firewall has been enabled on the server. First, you must distinguish whether the attack traffic is occurring at the network level or consists of high-volume requests aimed at the application. Then, you must verify where the provider performs filtering. On shared hosting, these operations are generally dependent on the provider; on a managed server, responsibility for logging, access, and configuration is broader.

First distinguish the attack type for DDoS attack prevention

A DDoS attack is traffic from many sources that makes a service unusable. In attacks at the network or transport layer, the target is connection capacity or the server's network resources. Signs may include the site becoming completely inaccessible, multiple services slowing down at the same time, or unusually high bandwidth appearing in the provider's monitoring panel. In this situation, a single application setting on the server may not be sufficient; filtering must be performed farther upstream, by the data center or upstream network.

An application-layer attack, on the other hand, may resemble normal web requests. If only specific endpoints, such as login, search, or product listing, are slow, examine the request count, processing time, and web server logs. Even when traffic volume does not appear very high, expensive database queries can consume resources. If the problem appears only on a single URL, rate limiting or caching specific to that operation may be more appropriate than blocking all traffic.

What access is needed before starting a protection plan?

If you use shared hosting, you generally have access to the traffic statistics in the panel, security settings, and the support channel; you cannot add a filtering rule at the network level. On a VPS or physical server, administrator access, the firewall, web server logs, and the provider's network protection must be evaluated separately. Before making changes, record the existing firewall rules, DNS records, and the provider's DDoS response procedure.

Ask the provider these questions in writing: Is protection applied on the network or after the traffic reaches the server? Does the IP address or DNS routing change during traffic scrubbing? Through which channel can an alert or temporary filtering request be opened? If the response is unclear, do not accept only a panel plugin as DDoS protection; application security and upstream network protection do not serve the same function.

Safe order to follow when signs of an attack appear

  1. Record the symptom and its time. Note when the site address became slow, which pages were affected, and which normal operations continued. If all services are affected at the same time, the likelihood of a network or capacity problem increases; if only one endpoint is affected, focus on the application layer.
  2. Review the traffic and event screens in the provider panel. Match the time when the traffic increase began, its source distribution, and any protection alert with the site's error logs. If the panel shows a network-level attack or scrubbing information, start the support procedure without randomly changing rules on the server. If there is no such record, check the application request count and web server response times.
  3. Compare the web server and application logs over the same time range. If the logs show a concentration of requests on a particular URL while other pages work, apply rate limiting only to that operation, caching, or stricter controls for a flow that requires authentication. If capacity is exhausted before connections can be established, these settings will have limited effect; intervention on the provider's network side is required.
  4. Make one narrowly scoped change. In the managed firewall, apply a documented rate limit or temporary filter only to the endpoint under attack. Blocking an entire country, network, or broad IP range can also cut off legitimate visitors. Keep the previous value and the time of the change; do not disable security controls completely.
  5. Retry the same failed operation and look for new evidence. After the change, open the same URL using the same method; check the logs and response statuses for the new time period. If request intensity decreases while normal pages recover, the narrow rule may be working. Recovery for only one client is not sufficient evidence; also verify the application's normal user flow through a controlled access from a different network.
  6. Apply the rollback plan if the symptom continues. If network capacity remains exhausted even though the new rule has not changed, restore the previous safe setting and send the provider's attack-response channel the event start time, affected addresses, and a summary of the logs. Randomly restarting the server or deleting files will not remove the attack source and may cause the loss of new evidence.

How does resource selection depend on the need?

The decision chain can be established as follows: If external access to the site is completely cut off and the provider reports a network attack, priority should be given to upstream scrubbing and provider intervention that preserves capacity; adding only a CMS plugin is not an appropriate solution. By contrast, if the site opens but search or login requests increase CPU and database usage, application-layer rate limiting, caching, and reducing expensive operations should be examined.

Another choice depends on the hosting model. If you do not have administrator access, do not try to force network rules that cannot be changed from the panel; clarify the provider's protection scope and incident-opening response time. If you control the logs and firewall on a managed VPS, first test a narrowly scoped application rule; however, if the network connection is exhausted before reaching the server, a service that provides protection at a higher network layer is required.

For example, suppose that in a hypothetical store only the search page is slow, the home page opens normally, and new logs show unusual requests to the same search address. This observation supports evaluating a temporary rate limit for the search endpoint instead of shutting down the entire server. If DNS and other services also become inaccessible at the same time, this assumption is no longer valid; the incident should be escalated to the network provider, and the application rule should not be interpreted as a general DDoS solution.

Define acceptance criteria before an attack occurs

When evaluating the protection plan for the first time, first record the normal baseline: the normal response of the home page, login, search, and critical payment flow; the usual traffic range in the provider panel; and the communication channel to be used for incident reporting. Then verify the scope of the provider's DDoS protection in a written explanation. An appropriate plan clearly states who will intervene for each symptom and which service may be affected; however, no network service automatically fixes an application's faulty queries.

To review the technical scope separately when evaluating hosting and server options, you can look at the relevant infrastructure information on İyibirNet. The next safe step is to ask your current provider in writing about the protection layer, the incident-reporting process, and how temporary filters can be rolled back; then add this information to your own logging and backup plan.


Top