Protection against DDoS attacks: website datool.ru and the data is protected
Website datool.ru and the service data is protected from DDoS attacks: network-level traffic filtering, CDN and cache against load spikes, API and login request limits, closed servers and encrypted copies.
Website datool.ru and all service data is now protected from DDoS attacks. Incoming traffic is filtered at the network level: parasitic request streams are cut off even before they reach our servers. The MAX channel catalog, statistics, cabinet, and API remain available even if someone tries to flood the site with requests.
Protection at the network level is only the first layer. The site itself is designed to withstand bursts of load and prevent outsiders from going where they have nothing to do: pictures are given via CDN, heavy pages are from the cache, requests have frequency limits, servers are closed by a firewall, and databases are accessible only to our own servers. Below we tell you what protection consists of and what it means to you.
DDoS protection at the network level
A DDoS attack is an attempt to disable a website by sending it more requests than it can handle. Usually such requests come simultaneously from thousands of infected devices. Against this, it is useless to simply "put a more powerful server": excess traffic needs to be screened out on the way.
Now all traffic datool.ru passes through network protection against DDoS attacks. It separates regular visitors and API clients from the garbage stream and allows only normal requests to the site. Nothing changes for you: the site addresses, login to the cabinet and API keys work as before.
The site can withstand bursts of load
Even if the flow of requests is legitimate — for example, a link to a channel was published by a major media outlet — the site should not crash. For this:
- Images — via CDN. Channel avatars and post images are provided by the content delivery network, not our server. Pictures are the heaviest part of page traffic, and CDN takes it on itself.
- Heavy pages are from the cache. Ready-made channel page tabs are stored in a separate cache: when the deadline has expired, the user immediately sees the last response, and the fresh one is considered in the background. The influx of visitors to one channel does not turn into hundreds of identical calculations.
- Ratings, Collections, "Today in MAX" and "MAX Statistics" are calculated in advance, once an hour, and not every time the page is opened.
- Slow requests do not keep the site running. The request has a deadline: the headers should arrive in seconds, and the body in a reasonable time. The size of the request body is limited, and the incoming data is first received entirely by the proxy server and only then transmitted to the site. Therefore, intentionally stretched "slow" requests do not occupy the processes of the site.
- Each part of the system is within its own memory limits. If some service is overloaded, only it restarts itself, and not the site next to it.
Request frequency limits
Another layer of protection is restrictions on how many requests can be sent per unit of time.
- API. Each API tariff has its own frequency of requests per second and its monthly volume. If the limit is exceeded, the API responds with code 429 with an understandable reason (
rate_limitedorquota_exceeded) and a hint on how many seconds to repeat the request. For more information, see the "Limits and expenses" section of the documentation. - Selection of keys. Unsuccessful attempts to log in to the API with an invalid key are counted at the sender's address. After several dozen errors per minute, the following requests from this address immediately receive 429, and the key is not even searched in the database.
- Requests without a key (API schema, interactive documentation) are also limited by address.
- Login to the site. The number of failed login attempts and password recovery requests is limited, so it's pointless to select passwords.
- Expensive actions. Adding new channels to the catalog, urgent copies of images, uploading files, and other operations that trigger work in the background are limited in number per minute or per hour. Some of them are both for the user and for the entire site.
Servers are closed from excess
- Firewall on all servers. Only what is needed for the site to work is open from the outside. The background task servers and the database server are not accessible to visitors from the outside at all.
- Login to the servers — only by key. Password login is completely disabled. Even before this decision, there were almost 6,000 password matching attempts on a fresh server in one day, now they are useless.
- fail2ban. Three login errors in ten minutes — ban the address for an hour. Each subsequent ban is twice as long, and repeat offenders are blocked for a week.
- Databases and Redis are just for your own. They accept connections only from our servers, via an internal network or firewall, and only via an encrypted connection with certificate verification. You cannot connect to them from the Internet.
- HTTPS only. All subdomains work over a secure connection, and the browser remembers this for a year (HSTS).
Updates without downtime
Operating system security updates are delivered to servers automatically. Kernel fixes are applied without rebooting: servers do not need to stop to close the found vulnerability. Once a week, a separate check informs the team about new versions of the database, packages and system, and monitoring Follows the availability of the site, databases and background tasks around the clock.
What does this mean for you
- The website and dashboard are accessible to users, and the organization's data, favorites, subscriptions, and API keys are securely protected.
- API clients need predictable limits and clear 429 responses instead of unexpected failures.
- Channel Owners — channel statistics and owner confirmation do not depend on whether someone is attacking the site.
Frequent questions
What happens if the site is attacked?
Network protection will weed out garbage traffic to our servers, and cache, CDN and frequency limits will keep the load from bursts. For regular visitors, the site will continue to work.
Why did the API respond with 429?
Code 429 means that the frequency of tariff requests or its monthly volume has been exceeded. The response contains the machine code of the reason and the time before the replay. Fare limits are described on the API.MAX page.
Where is my data stored?
On servers in Moscow, files are stored in a vault in St. Petersburg. Backups are encrypted and stored in a private vault.
Do I need to change something in my settings?
No. Site addresses, account login, and API keys work as before. If you access the API from your own programs, it is enough to process code 429 and repeat the request after the specified time.
Security is not one button, but many layers: from filtering traffic to encrypting backups. Use MAX channel analytics calmly: we Follow that the site is working and the data is safe.




