Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
Article8 min readViews0

Constant DDoS protection or emergency connection: calculating the threshold for a store

This is a training, not a market model: we compare the annual fee for constant filtering with emergency connection, downtime, and team work; we show the threshold formula and acceptance conditions.

Comments 0

A dark purple payment terminal under a transparent protective casing deflecting a stream of metal balls
In this article

If constant protection costs 216,000 rubles per year, and the emergency scenario costs an additional 66,480 rubles for each comparable incident, the break-even point is at 3.25 incidents. In the training model, the first whole threshold is four attacks per year. Until then, emergency connection is cheaper in direct costs; after that, the constant scheme is cheaper. This is not a forecast or a promise of return on investment: all amounts below must be replaced with contractual prices and data from your own store.

You cannot compare only the monthly tariff. The emergency option has an activation fee, time to effective filtering, team work, and losses from unavailable checkout. The constant option includes annual fees, setup, monitoring of false blocks, and residual damage: protection does not guarantee zero downtime.

How the two options are structured

In a permanent scheme, traffic continuously passes through the filtering system. In an emergency scheme, switching or activation begins only after an attack is detected. The second option may be reasonable if incidents are rare, the store accepts some risk, and the activation procedure has been verified in advance.

In the technical guide by CISA on volumetric DDoS attacks, these models are clearly distinguished: manual activation requires designated roles, a supported procedure, and verification of the time to mitigation. The term on-demand itself does not imply instant protection.

For an online store, the public catalog is not the only concern. After a route change, authorization, the shopping cart, checkout, payment notifications, 1C synchronization, and other permitted integrations must work. If filtering allows pages through but breaks payment webhooks, the availability task remains unsolved.

What to include in the comparison

  • Permanent scheme: annual fee, one-time connection fee, support, team time, and residual costs during an incident.
  • Emergency scheme: cost per activation, time until effective filtering, unrecovered margin from lost orders, team work, and external emergency response.
  • For both options: latency changes, false positives, API and webhook verification, access to the origin server, DNS, and TLS.
  • Separately: items outside the scope, such as arbitrary TCP/UDP services, application-layer attacks, or vulnerability remediation.

Revenue should not be fully written off as a loss. Some customers will return, others will place orders through a manager, and variable costs for the failed sale will not be incurred. The calculation requires the marginal contribution of a single paid order and the proportion of orders that could not be recovered.

Assumptions for the training calculation

Below are not market prices or a General iT offer. This is a set of numbers that illustrates the mechanics. In a real solution, each row is replaced with data from the contract, incident log, and store analytics.

Parameter

Reference value

How to verify

Constant filtering

18 000 RUB per month

Commercial proposal with coverage composition

Emergency connection

45,000 RUB per incident

Contract and list of additional works

Time until filtering

3 hours

Activation test or log of past incidents

Affected orders

12 per hour

Comparable hours by day of the week and channels

Did not recover

35%

Orders completed later are excluded from losses

Contribution margin

1 800 RUB per order

Price minus variable costs

Team labor cost

6 hours × 1,200 ₽

Full hourly cost of participants

Residual costs under the permanent scheme

8,400 ₽ per incident

2 hours of team work and estimated 6,000 ₽ in other expenses

Cost of a single emergency incident

First, calculate the unrecovered marginal contribution: 3 hours × 12 orders per hour × 35% × 1,800 rubles = 22,680 rubles.

Add emergency connection and team work: 45,000 + 6 × 1,200 + 22,680 = 74,880 rubles per incident.

In the training example, the annual fee for the permanent scheme is 18,000 × 12 = 216,000 rubles. We do not assume zero residual damage: we leave 8,400 rubles for each incident. This is an important safeguard against an overly optimistic model.

Annual threshold

Each incident adds 74,880 rubles to the emergency option and 8,400 rubles to the permanent option. The difference is 66,480 rubles. Dividing the fixed 216,000 rubles by this difference: 216,000 ÷ 66,480 ≈ 3.25.

Since the number of incidents must be an integer, the first scenario where the permanent option is cheaper occurs at four comparable incidents per year.

Incidents per year

Emergency scheme

Permanent scheme

Difference

1

74 880 ₽

224 400 ₽

Emergency is cheaper by 149 520 ₽

2

149 760 ₽

232 800 ₽

The emergency option is cheaper by 83,040 ₽

3

224,640 ₽

241,200 ₽

The emergency option is cheaper by 16,560 ₽

4

299,520 ₽

249,600 ₽

Permanent is cheaper by 49,920 ₽

5

374,400 ₽

258,000 ₽

Permanent is cheaper by 116,400 ₽

Chart of annual expenses for emergency and permanent DDoS protection with incident counts from zero to five
Training scenario: A = emergency connection, B = permanent protection; N = number of comparable incidents per year; ₽ × 1000 = annual expenses in thousands of rubles. The first integer threshold is 4 incidents.

The threshold cannot be moved to another store without recalculation. If the actual emergency activation takes not three hours but forty minutes, the model will change. If the attack coincides with a sale featuring a high marginal contribution, the result will shift in the opposite direction.

What most significantly changes the result

  • Frequency of comparable incidents. A random traffic spike and a confirmed DDoS attack are not the same event.
  • Time to effective filtering. Clarify not the manager's response time, but the moment when verified scenarios are restored.
  • Share of unrecovered orders. A repeat purchase later must not be counted as a loss twice.
  • Marginal contribution, not average check. The same turnover can yield different contributions.
  • Coverage boundaries. Website protection does not necessarily include APIs, email, DNS, origin IP, and other services.
  • Residual costs of a permanent scheme: support, analysis of false blocks, rule changes, and integration monitoring.

For sensitivity analysis, it is convenient to recalculate three scenarios: calm, baseline, and peak. Change one parameter at a time. This reveals which fact truly influences the decision and which merely creates an illusion of precision.

What to check before signing the contract

  • Which domains, IP addresses, protocols, and protection levels are included.
  • How traffic is routed to filtering: via DNS, BGP, or another scheme; who performs the action and when.
  • How TLS certificates are managed and how the connection from the filter to the origin server is maintained.
  • Whether protection can be bypassed by accessing the origin IP directly and who is responsible for restricting access.
  • What limits, exceptions, and actions apply to APIs, payment webhooks, 1C synchronization, and service bots.
  • Who confirms an attack, who activates emergency mode, and which communication channel is used at night and on weekends.
  • Which metrics track time to detection, activation, and restoration of the user scenario.
  • What additional work is billed separately and how the price changes with increased normal traffic.

On the General iT DDoS protection connection page, it is explicitly stated: the possibility of urgent connection depends on the site status, domain access, and the original server, so an exact timeframe cannot be promised before verification. This is not a marketing disclaimer but an input condition for the calculation.

How to conduct acceptance testing

Before the first attack, a controlled test or an agreed-upon training window is required. It does not simulate malicious load on a live site but verifies routing, access rights, and business scenarios after enabling the selected scheme.

  • Record the normal availability and latency of key pages before the change.
  • Verify the catalog, search, authorization, cart, checkout, and post-payment return flow.
  • Send an allowed test webhook and verify it arrives exactly once.
  • Verify the exchange with 1C or another external system on a secure test object.
  • Ensure that direct bypass of filtering is closed within agreed limits.
  • Record the actual time for each stage and the responsible parties.
  • Verify the return to standard operation, logs, and the procedure for changing rules.

The acceptance result is not a message stating 'protection enabled', but a protocol: which resources were protected, which scenarios passed, how long activation took, what remained outside coverage, and who will correct deviations.

If you need to separately estimate losses due to a non-functional checkout, use the model from the article How Much a Store Hour of Checkout Downtime Costs. In the current calculation, this indicator is only one part of the comparison, not the entire cost of a DDoS incident.

Output limitations

  • Four incidents are the result of training assumptions only, not a universal recommendation.
  • Constant filtering does not guarantee protection against all possible attacks, breaches, or application errors.
  • An emergency option may be economically reasonable if the risk is consciously accepted and the procedure is truly verified.
  • Comparison is incomplete without contractual boundaries, activation time, and integration acceptance.
  • The solution is reviewed after each incident and when traffic, infrastructure, or the store composition changes.

The practical criterion is simple: a decision is justified when the store provides its prices and margin contribution, confirms the frequency and duration of incidents, and then verifies in the contract and on the test that the selected scheme protects exactly the required user actions. Until then, any break-even point remains merely elegant arithmetic.

Discussion 0

Share your experience and ask questions. Comments without links appear after editorial review.

No comments yet. Start the discussion.